在iframe的父页面中定义函数:
function closeIFrame(){ console.log("关闭子页面"); $('#youriframeid').remove(); }
然后在iframe标签调用
parent.closeIFrame();
在iframe的父页面中定义函数:
function closeIFrame(){ console.log("关闭子页面"); $('#youriframeid').remove(); }
然后在iframe标签调用
parent.closeIFrame();
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。