例如,考虑以下这段HTML代码:
我不明白如何编写连接的jQuery
这个怎么写才是正确的语法?
<div>
<p>p0</p>
<p>p1</p>
<p>p2</p>
</div>
我不明白如何编写连接的jQuery
this
选择器,就像这样:$("div").on("mouseover", function () {
$(this + " p").css({
color: "#009"
});
});
这个怎么写才是正确的语法?
$(this).find("p").css(...
- I Hate Lazy$('p', this)
。 - Selvakumar Arumugam