vue嵌套的iframe调用vue中的数据
参考链接
vue:
mounted() { window["closeRightHelpPage"] = () => { this.drawer = false }; },
iframe中的html方法
<img onclick="closeRightHelpPage()" width="16px" height="16px" alt="关闭帮助" src="/designer/resource/images/close01.gif" /> var closeRightHelpPage = function(){ if(document.readyState == 'complete') { window.parent['closeRightHelpPage'](); } }