jquery 事件执行检测代码

2020-05-23 06:14:10易采站长站整理

<script type=”text/javascript” src=”eventsMonitor.js”></script><!–Google CDN–>
<script type=”text/javascript”>
$(document).ready(function(){
eventsMonitor({
css:{top:0,right:20},
eventsStr:”click blur focus select scroll mousewheel resize”
});
$(“#info”).click(function(){$(this).text($(“#DivForLogEvents”).outerHeight());});
});
</script>
</head>
<body>
Hello world
<img src=”http://files.jb51.net/upload/2009-12/20091209042029557.gif” />
<input type=”text” id=”name” value=”测试” />
<span id=”info”>ffffffff</span>
</body>
</html>


效果截图