摘要: 一、事件有冒泡现象:阻止冒泡事件的方法有两种:$(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& 阅读全文
posted @ 2012-08-16 16:28 微笑点燃希望 阅读(764) 评论(2) 推荐(0) 编辑
font=white