JS代码同步文本框内容的实例方法
HTML代码: 代码如下:<html> <head> [removed] //同步函数 function synchronize(){ document.getElementById(‘i1’).value =document.getElementById(‘i2’).value; //alert(“同步成功”); } //执行同步 setInterval(synchronize,500);//同步的时间间隔,每0.5秒同步一次 [re
下载地址
用户评论