layer实现子窗口关闭,父窗口刷新

        var index = layer.open({
            type: 2,
            title: title,
            content: '{:U('TourProduct/getAttractionsImg')}' + '?product_id=' + id,
            area: ['70%', '80%'],
            maxmin: true,
            cancel: function(index, layero){ 
            	layer.close(index);
                location.reload();
            }
        });

  

原文地址:https://www.cnblogs.com/xie-xiao-chao/p/8074942.html