jQuery选择器问题

Pee*_*Haa 2 performance jquery jquery-selectors

做的有什么不同:

$(this).find('.action')
Run Code Online (Sandbox Code Playgroud)

要么

$('.action', this)
Run Code Online (Sandbox Code Playgroud)

性能?如果是这样哪一个更好,为什么?

别的什么?

mom*_*omo 5

每个jQuery文档(http://api.jquery.com/jQuery/)没有区别:

在内部,选择器上下文是使用.find()方法实现的,因此$('span',this)等价于$(this).find('span').