您的位置:首页 > Web前端 > JQuery

jquery 1.8 判断事件是否已经绑定

2014-02-18 00:00 169 查看
On previous versions, you could call it like for other data :

obj.data('events');

In jQuery 1.8, this direct access was removed, so in recent versions you must call it like this :

$._data(obj[0],"events")
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: