【发布时间】:2012-12-18 11:54:12
【问题描述】:
在进行一些健全性测试时,我注意到以下 change 事件绑定有效:
$("body").on("change","input", function(){console.log(1)})
虽然on 事件绑定没有:
$("body").on("change","select", function(){console.log(1)})
对于这种不一致是否有任何解决方法或解释?
【问题讨论】:
-
你能解释清楚吗?也许有一些演示。
-
是否特定于特定浏览器?
-
在 chrome 中为我工作 jsfiddle.net/eHRCD
-
最好再次运行该健全性检查.. 工作正常
标签: jquery debugging html-select onchange event-delegation