6
如何将选择器从$(this)扩展到,可以说,它是儿童?或者其他任何东西。我的意思是,如何用$(this)正确地控制它们?
像:
$("li.nav").each(function() {
$(this AND children of this, or this AND it's siblings).something();
});
抱歉,如果这已经回答了,找不到它。
如何将选择器从$(this)扩展到,可以说,它是儿童?或者其他任何东西。我的意思是,如何用$(this)正确地控制它们?
像:
$("li.nav").each(function() {
$(this AND children of this, or this AND it's siblings).something();
});
抱歉,如果这已经回答了,找不到它。
哈哈,这是最快为止。谢谢! – cincplug 2012-03-20 12:27:28
@cincplug:没问题!乐意效劳。 – 2012-03-20 12:31:02