1.有A,B两个页面,将B页面通过iframe嵌套到A页面当中
<iframe name='bulletscreeniframe' class='iframe1' src="页面的url" frameborder='0' ></iframe>
2.在子页面调用父页面的方法:
parent.$("iframe ").hide()
parent.方法()
3.在父页面调用子页面的方法
window.frames['bulletscreeniframe'].paysuccess() (bulletscreeniframe是iframe 标签的name)