1. 首页
  2. 行业
  3. 物流
  4. 用js传递value默认值的示例代码

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

上传者: 2020-12-13 13:54:53上传 PDF文件 33.84KB 热度 15次
需求和代码如下: “这是我的代码:” <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的值默认是空的,
下载地址
用户评论