jQuery(expression,[context])

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

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

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

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

原文地址:https://www.cnblogs.com/nyth/p/2756831.html