摘要: jQuery:has()和jQuery:contains()两个方法比较类似。不同点在于:has是判断标签的contains是判断文本的1、jQuery:has()HelloHello again!$("div:has(p)").addClass("test");//含有p标签的div标签增加tes... 阅读全文
posted @ 2013-12-23 09:39 抽风的二七 阅读(380) 评论(0) 推荐(0) 编辑