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.
为什么这不起作用:
inputButton.addEventListener('onchange', jsFunction, false);
我更改了输入框,但它没有调用 jsFunction。
尝试change代替onchange
change
onchange
inputButton.addEventListener('change', jsFunction, false);