摘要:
一、事件有冒泡现象:阻止冒泡事件的方法有两种:$(function () { var i = 0; $("body,div,#btnShow").click(function (event) { i++; $(".123").css("color", "Red"); alert(i); event.stopPropagation(); }); $("body,div").click(function (event) { i++; alert(i); }); })$("#btnShow& 阅读全文