layer窗口

<script src="js/plugins/layer/layer.min.js"></script>
//iframe层
parent.layer.open({
    type: 2,
    title: '添加名片',
    shadeClose: true,
    shade: 0.8,
    area: ['580px', '400px'],
    content: '/mgr/card/add.html', //iframe的url
    end:function() {
        location.reload();
    }
});

原文出处:https://malaoshi.top/show_1IX6F8HqOx3M.html