1 回答
stone310
TA贡献361条经验 获得超191个赞
input(获取input元素).value=xxx(要传的值) 是这个意思?
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<input id="inp1" type="text"/>
<script>
document.getElementById("inp1").value=55
</script>
</body>
</html>添加回答
举报
0/150
提交
取消
