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.
我知道有一个用于 jquery UI 自动完成的事件,它是change事件。但change事件仅在输入字段的值更改时触发。如果值没有改变,我想触发一个函数。所以我想要类似于nochange事件的东西???
change
nochange
在 document.ready 中使用 setInterval() 可以检查文本是否在时间间隔内更改,如果没有更改,您可以执行一些操作。
$(document).ready(function() { setInterval(function() { // check whether the text is changed or not }, 2000); });