11 2017 档案
摘要:JQuery 提供了两种方式来阻止事件冒泡。 方法一:event.stopPropagation(); $("#div1").mousedown(function(event){ event.stopPropagation(); }); 方法二:return false; $("#div1").mo
阅读全文
摘要:$(".checkAll").click(function(){ var check = $(this).prop("checked"); //父元素check返回的是true或者false,如果父元素被选中,则所有子元素也被选中 $(".childCheck").prop("checked",ch
阅读全文

浙公网安备 33010602011771号