<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
<script src="jquery-1.10.1.min.js"></script>
<script>



$(function(){

$('#div1').on('click',{name:'hello'},function(ev){

alert(ev.data.name); // 传递参数

alert( ev.target ); // 当前操作的事件源

alert( ev.type ); // 当前操作的事件类型

});


});

</script>
</head>

<body>
<div >aaaa</div>
</body>
</html>

相关文章:

  • 2021-11-28
  • 2022-12-23
  • 2021-11-21
  • 2021-10-14
  • 2022-03-09
  • 2021-11-28
  • 2021-11-14
猜你喜欢
  • 2022-12-23
  • 2021-12-28
  • 2022-03-02
  • 2022-12-23
  • 2021-11-25
  • 2021-12-18
相关资源
相似解决方案