2013年4月16日

摘要: $(body).find("not(.vnn)").click(function(){ alert("fd"); $("#indestryjiegou").html(""); $("#indestryjiegouEr").html(""); $("#indestryjiegouSan").html(""); });not 不常用 ,因为 not外元素不可控 ,可能会很多而不是$(body).find("not(id=vnn)& 阅读全文
posted @ 2013-04-16 10:52 远方的人 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 1. 使用unbind 方法 ,jquery 2.阻止冒泡的意思是,html DOM里面的事件,是从最初的点击对象然后逐层向父级Element传递的, 当span点击以后,如果将事件停止了,他自然就不会冒泡了。 $('p').addEvent("click",function(event){ event.stop(); }); function cancelBubble(evt) { // 阻止事件冒泡 if (window.event) { // Chrome,IE6,Opera window.event.cancelBub... 阅读全文
posted @ 2013-04-16 09:56 远方的人 阅读(182) 评论(0) 推荐(0) 编辑

导航