父页面有个ID为mainfrm的iframe,iframe连接b.html,该页面有个函数test
在父页面调用b.html的test方法为:
$("#mainfrm")[0].contentWindow.test();
父页面有个ID为mainfrm的iframe,iframe连接b.html,该页面有个函数test
在父页面调用b.html的test方法为:
$("#mainfrm")[0].contentWindow.test();
前言iframe在复合文档中经常用到,利用jquery操作iframe可以大幅提高效率,本文主要给
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M