事件机制 案例1 </head> <script src="jQuery/jquery-3 2 1.js type="text/javascript>/script> <body> <div> <script> <input id="btn Show" type="button s(function o vaue="点击" class="btn"> var intI=0 </div> <div class="cls show></diy> s(body div, #btnShow) click(function( </body> intI++ </html> $(". clsShow").show0.htm1("您好,欢迎来到 jQuery世界!") pend("<div>执 行次数<b〉"+intI+"<b)/div)") </script>事件机制 案例1: < s c r i p t s r c = " j Q u e r y / j q u e r y -3.2.1.js" type="text/javascript"></script> <script> $(function(){ var intI=0; $("body,div,#btnShow").click(function(){ intI++; $(".clsShow").show().html("您好,欢迎来到 jQuery世界!") .append("<div>执 行次数<b>"+intI+"<b></div>") }); }); </script> </head> <body> <div> <input id="btnShow" type="button" value="点击" class="btn"> </div> <div class="clsShow"></div> </body> </html>