Asp.net layui重新加载当前页面

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/m0_37137902/article/details/80970785
重新加载当前页面  
  $('#userInformation').on('click', function () {
                layer.open({
                    type: 2,
                    title: '个人中心',
                    area: ['900px', '815px'],
                    fixed: false, //不固定
                    maxmin: false,
                    content: '/Shared/PersonalInfromation',
                    end: function () {
                        location.reload();{ time: 3000 };
                    }//end function里加上 location.reload();就可以了。
                });
            });

关闭刷新父界面

    var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
                            parent.layer.close(index);

猜你喜欢

转载自blog.csdn.net/m0_37137902/article/details/80970785
今日推荐