87,989
社区成员
发帖
与我相关
我的任务
分享function copy(){
document.getElementById('s2').value = document.getElementById('s1').value
}<form> <input type="text" name="s1" id="s1">
<input type="button" onclick="copy()" value="copy"> <input type="text" name="s2" id="s2">
</form>