使用 HTML DOM 更改输入字段的值。
<input type="text" id="myText" value="Hello">
<script>
document.getElementById("myText")@(6) = "Have a nice day!";
</script>
<input type="text" id="myText" value="Hello">
<script>
document.getElementById("myText").value = "Have a nice day!";
</script>