iframe嵌套传值问题

  • 嵌套传值

        A->B{a,b,c}  b->d

        A页面input框点击事件弹出B页面

        B页面是a,b,c三个iframe布局组合而来

        b页面iframe嵌套引入d页面

        要把b页面的值传到A页面的input框,实现方式如下

var window_parent=window.parent.parent;
window_parent.window.opener.document.getElementById("id").value ="123";
window_parent.close();
  • 相邻iframe传值
$(parent.document.getElementById("spDatable")).text()

猜你喜欢

转载自blog.csdn.net/Z865785437029/article/details/120261169