用js传递value默认值的示例代码

水中花wk 11 0 PDF 2020-12-13 13:12:52

需求和代码如下: “这是我的代码:” <input type="text" id="price2" value="333"/> <input type="text" id="trueprice" value="" /> [removed] document.getElementById("price2").onkeyup = function() { document.getElementById("trueprice").value = this.value; } [removed] 问题:现在打开这个页面,trueprice的值默认是空的,

用户评论
请输入评论内容
评分:
暂无评论