jQuery(expression,[context])

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

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

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

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

posted @ 2012-11-06 13:37  nyth  阅读(1030)  评论(0编辑  收藏  举报