1,本弹窗直接跳转父页面:

 

    <script>
        window.parent.location.reload(); //刷新父页面
        var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
        parent.layer.close(index);  // 关闭layer
    </script>
 

 

2,点击关闭弹窗后刷新当前页面:

layer.open({
                type: 2,
                area: [w+'px', h +'px'],
                fix: false, //不固定
                maxmin: true,
                shade:0.4,
                title: title,
                content: url,
                end: function(){
                    window.parent.location.reload(); //刷新父页面
                }
            });

相关文章:

  • 2021-08-20
  • 2021-12-04
  • 2021-11-18
  • 2021-11-27
  • 2021-11-28
  • 2021-12-29
猜你喜欢
  • 2021-09-04
  • 2021-12-11
  • 2021-06-20
相关资源
相似解决方案