有父级页面a,表单页面b,表单页面通过iframe嵌套在父级页面的层<div class=".form">中。现在想要在表单ajax提交成功后关闭<div class=".form">,但是嵌套页面不可能操作父级页面的dom。方法是在a.html写入function hide(){ $(".all").hide() }在b.html()通过$(".div").click(function(){ window.parent.pri() })调用父级页面的函数从而操作父级页面的dom Read More
posted @ 2012-04-26 10:07
break_happy
Views(318)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号