属性更改事件在Firefox中不可用 [英] propertychange event is not available in Firefox
本文介绍了属性更改事件在Firefox中不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在jQuery中,$.bind("propertychange", callback)
在Firefox中不可用,我该如何解决呢?
In jQuery, $.bind("propertychange", callback)
is not available within Firefox, how can I solve this?
最终,我用它来实现:
if ($.browser.msie) {
$this.unbind("propertychange").bind("propertychange", function(e) {
e.preventDefault();
bindTrigger();
});
}
else {
document.getElementById(_acBoxCtrlID).addEventListener("input", bindTrigger, false);
}
推荐答案
您必须使用$(#inputEvent).bind("input", function(){ // your code });
这篇关于属性更改事件在Firefox中不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文