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

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

在父页面中获取iframe中的元素方法:
$(this).contents().find("#suggestBox")
在iframe中调用父页面中定义的方法和变量:
parent.method
parent.value

以上就是【JQuery与iframe交互实现代码】的全部内容了,欢迎留言评论进行交流!

赞(0) 踩(0)

与本文相关的软件

发表我的评论

最新评论

  1. 暂无评论