11 2017 档案

摘要:JQuery 提供了两种方式来阻止事件冒泡。 方法一:event.stopPropagation(); $("#div1").mousedown(function(event){ event.stopPropagation(); }); 方法二:return false; $("#div1").mo 阅读全文
posted @ 2017-11-30 11:32 张宇凡20 阅读(696) 评论(0) 推荐(0)
摘要:$(".checkAll").click(function(){ var check = $(this).prop("checked"); //父元素check返回的是true或者false,如果父元素被选中,则所有子元素也被选中 $(".childCheck").prop("checked",ch 阅读全文
posted @ 2017-11-22 17:34 张宇凡20 阅读(112) 评论(0) 推荐(0)