更新时间:2023-09-29 19:26:58
我在Stack Overflow上找到了有关如何使用jQuery访问iFrame父页面的声音帮助。
Searching around I found sound help on Stack Overflow, about how to access iFrame parent page using jQuery.
window.parent.document
jQuery是一个***的库JavaScript,而不是它的完全替代品。您不必使用涉及 $
的内容替换每个最后的JavaScript表达式。
jQuery is a library on top of JavaScript, not a complete replacement for it. You don't have to replace every last JavaScript expression with something involving $
.
要在父级中查找iFrame使用:
To find in the parent of the iFrame use:
$('#parentPrice', window.parent.document).html();