有没有一种方法可以解除绑定不属于jQuery中特定名称空间的事件?作为inm,如果开发人员没有将事件指定为命名空间,是否存在事件所属的默认命名空间?
例如:
$('#id').bind('click.myEvents', handler); //a click with a specific namespace: myEvents
$('#id').bind('click',handler2); //a click without a specific namespace
我能在不影响第一个点击事件的情况下锁定第二个点击事件吗?
最基本的问题是...
我的网站是这样设置的:
<player> // A fixed div that contains JPlayer and it's playlist
<main> // all content in here is ajaxed including the links to mp3's for the player
基本上,一切都很正常,直到你点击一个链接加载一个新页面,此时JPlayer拒绝加载更多歌曲,JQuery autocomplete (在搜索框中)停止工作。
你能看看这个网站,看看是什么原因导致在Ajax加载后脚本失败