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();
            }
        });

  

posted @ 2017-12-20 17:28  xc_flying  阅读(1539)  评论(0编辑  收藏  举报