JQueryiframe页面操作父页面中的元素与方法

1 在iframe中查找父页面元素的方法:

$('#id', window.parent.document)

2 在iframe中调用父页面中定义的方法和变量:

parent.method
parent.value

猜你喜欢

转载自blog.csdn.net/weixin_43553153/article/details/108162462