我需要帮助理解$(this).是否有可能在括号内缩小"this"的焦点,或者"this"是否排除使用任何其他属性?
例如:我不明白为什么这段代码:
$(this).children("div")
Run Code Online (Sandbox Code Playgroud)
不能像这样重写:
$(this +" div")
Run Code Online (Sandbox Code Playgroud)
无需诉诸:
$('#'+$(this).attr("id")+" div")
Run Code Online (Sandbox Code Playgroud)
另外,你能在JQuery文档中指出'this'吗?由于显而易见的原因,很难将"this"用作搜索词.