您可以显示 jQuery 元素引用的所有数据:
console.log(jQuery.cache); // Logs the entire cache
Run Code Online (Sandbox Code Playgroud)
或者仅对于事件(对于具有事件的元素):
for(name in jQuery.cache) {
if(jQuery.cache[name]['events'])
console.log(jQuery.cache[name]['events']);
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2836 次 |
| 最近记录: |