js两个input框内容同步
2021-03-01 08:28
阅读:593
标签:pre get rgb func script put val code rip js两个input框内容同步 标签:pre get rgb func script put val code rip 原文地址:https://www.cnblogs.com/dazahui/p/14423260.html
body>
input type="text" id="t1" > br>
input type="text" id="t2" >
body>
script>
document.getElementById(‘t1‘).oninput = function(){
document.getElementById(‘t2‘).value = this.value;
}
script>
评论
亲,登录后才可以留言!