什么是这个jQuery语法,它有什么用?

125*_*748 0 javascript jquery

一旦我看到使用这样的东西的jQuery选择

$(".myClass", $(this));
Run Code Online (Sandbox Code Playgroud)

我是否正确无误,它究竟做了什么?

如果我知道名字,我可能只是谷歌,但我不知道它叫什么.

tym*_*eJV 7

它相当于使用find起点this

$(this).find(".myClass");
Run Code Online (Sandbox Code Playgroud)

您的示例的语法也可以简化为:$(".myClass", this);- 无需重新jQuerythis