Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 值更改时的javascript文本框调用事件
如何检查我在文本框中的值是否已更改?不使用按钮...(在 javascript 中自动更新!)
利用:
<input type="text" id="myInput" onchange="alert('changed')" />