一、父页面得到iframe中子页面的元素
$("#iframe1").contents().find("#form1").html()
二、子页面获取父页面的元素
$("#父页面元素id" , parent.document)
一、父页面得到iframe中子页面的元素
$("#iframe1").contents().find("#form1").html()
二、子页面获取父页面的元素
$("#父页面元素id" , parent.document)
转载于:https://my.oschina.net/u/1538782/blog/405398