想了解免费建站的朋友,查看《免费建站教程》

js如何使两个input里的内容实时变化

2020-03-31 1294 JS
<input type="text" onkeyup="KeyP(this);" /> <input type="text" id="txt" />

<script>
    function KeyP(v){
        document.getElementById("txt").value = v.value;
    }
</script>


版权保护: 转载请保留链接: https://cgy.isi8.cn/js/41.html