📜  js onchange 输入值事件监听 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:10.079000             🧑  作者: Mango

代码示例1
const myInput = document.querySelector('input[name="exampleInput"]');

myInput.addEventListener("change", (e) => {
  // here we do something
});