父页面与ifram子页面之间调用

子页面调用父页面标签

js

  window.parent.document.getElementByIdx_x("元素id")

jquery

  window.parent.$('.theme-popover')

父页面调用子页面标签

js

  window.frames["iframe的name值"].document.getElementById("iframe中控件的ID")

jquery

  $("#iframe中的控件ID",document.frames("frame的name").document).click();

扫描二维码关注公众号,回复: 6647207 查看本文章

猜你喜欢

转载自www.cnblogs.com/webmc/p/11097015.html
今日推荐