ajaxPostToast(_param, globe.baseApi.user_login, function (res) { if(res.code === 1){ setStorage("userInfo", res.data.userinfo);
// 登录成功后刷新页面 let index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引 window.parent.location.reload(); // 刷新父级的页面,否则是无法刷新的 parent.layer.close(index); //再执行关闭 } });
转载:https://blog.csdn.net/tanzhen1991910/article/details/53448981
标签:layer,parent,open,刷新,res,type,页面 From: https://www.cnblogs.com/LindaBlog/p/17088065.html