<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
    <html xmlns="http://www.w3.org/1999/xhtml">  
    <head>  
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
    <title>Simple JQuery</title>  
    <mce:script type="text/javascript" src="js/jquery.js" mce_src="js/jquery.js"></mce:script>  
    <mce:script type="text/javascript"><!--  
     $(function(){  
     $('#mybtn').bind('click', {a : 'hello', b : 'world'}, myFun);  
     });  
       
     function myFun(e) {  
      alert(e.data.a);  
     alert(e.data.b)  
     }  
    // --></mce:script>  
    </head>  
    <body>  
    <input type="button" id="mybtn" value="Click me." />  
    </body>  
    </html>  

 

相关文章:

  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-27
  • 2022-12-23
  • 2022-01-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-15
  • 2022-02-13
  • 2021-07-16
  • 2021-07-24
相关资源
相似解决方案