jQuery(expression,[context])

expression (String) : 用来查找的字符串

context (Element, jQuery) : (可选) 作为待查找的 DOM 元素集、文档或 jQuery 对象。

例:   $('#member_id',window.opener.document).attr('value','29');

解释:在父页面的文档中找到ID为member_id的元素。

比如:

$p = $("p", $(this)).eq(0);   //查找当前元素下的p元素里的第一个,也就是寻找当前元素里的第一个p

原文地址:https://www.cnblogs.com/ghfjj/p/6649828.html