<script src="http://www.cnblogs.com/scripts/jquery-1.3.1.js" type="text/javascript"></script>
<script type="text/javascript">
 $(function(){
    $('#btn').bind("myClick", function(){
      $('#test').append("<p>我的自定义事件.</p>");
     });
    $('#btn').click(function(){
   $(this).trigger("myClick");
    });
 })
</script>
</head>
<body>
<button >点击我</button>
<div ></div>
</body>

相关文章:

  • 2021-12-05
  • 2022-01-19
  • 2022-12-23
  • 2021-09-04
  • 2022-02-07
  • 2022-02-07
猜你喜欢
  • 2021-11-30
  • 2022-12-23
  • 2021-11-20
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案