我有这样的代码:
$("*").bind("mousedown.sg", { 'self':this }, this.sgMousedown);它简单地在页面上的所有元素上绑定事件侦听器,并且它可以在除chrome之外的所有浏览器中正常工作。在chrome监听器中,即使是在滚动条上绑定,它也会停止对点击的响应。
问题是我可以使用哪个选择器来避免这种情况?
发布于 2013-04-15 21:57:00
不确定您想要实现什么,但是绑定到body是一个选项吗?
$("body").bind("mousedown.sg", { 'self':this }, this.sgMousedown);https://stackoverflow.com/questions/16016942
复制相似问题