在iframe内页面完全加载完后,关闭父页面生成的div遮罩层

遮罩层div为iframe父页面生成,需在iframe内页面完全加载完后,关闭遮罩层
alertMsgClose() ;函数为关闭遮罩层函数
此段代码在iframe页面内:

<script>
    $(function () {
        window.parent.alertMsgClose();// iframe 外层页面关闭遮罩层
    });

</script>
原文地址:https://www.cnblogs.com/tmdsleep/p/10984450.html