摘要: 有时:window.parent.document方法获取不到。但是opener.document方法可以。 1)判断元素是否存在 $("#yourid").length>0表示id为yourid的元素存在,否则表示不存在; 2)获取父窗口的元素 $("#yourid",opener.document) 等同于普通写法opener.document.getElementById("yourid"). 3)判断父窗口指定元素是否存在 $("#yourid",opener.document).length> 阅读全文
posted @ 2012-12-14 09:28 weiyingqin 阅读(669) 评论(0) 推荐(0) 编辑