码迷,mamicode.com
首页 > 其他好文 > 详细

iframe传参调用子页面方法报错

时间:2019-11-30 14:11:18      阅读:119      评论:0      收藏:0      [点我收藏+]

标签:detail   window   调用   weixin   bsp   details   net   string   log   

contentWindow.xxx is not a function、iframe的时候还没有加载完成导致报错

var frame = document.getElementById("map");

 frame.onload = function(){

  frame.contentWindow.getMobile()

};

https://blog.csdn.net/weixin_42596278/article/details/90606924

iframe传参调用子页面方法报错

标签:detail   window   调用   weixin   bsp   details   net   string   log   

原文地址:https://www.cnblogs.com/wang-xing/p/11961838.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!