06 2011 档案
摘要:jQuery的链式操作,什么是链式操作呢? 我们来看看,本来应该写成这样子的:$(".stripe tr").mouseover(function(){ $(this).addClass("over");})$(".stripe tr").mouseout(function(){ $(this)...
阅读全文
摘要:$("h3 a", patch);简单讲,是 $('#parentID').find('childNode') 的偷懒写法$("h3 a", patch) 等于 patch.find('h3 a')$("h3 a",$(this)) 等于 $(this).find('h3 a')直接用 find 会快些,因为偷懒的写法最终还是调用 find
阅读全文

浙公网安备 33010602011771号