關閉layer彈出層,刷新父窗口,火狐提示:NS_ERROR_XPC_SECURITY_MANAGER_V錯誤函數
原代碼如 下:ui
window.parent.location.reload(); //window.parent.location.href="/file/list" var index = parent.layer.getFrameIndex(window.name); parent.layer.close(index);
解決方案:spa
利用end函數code
layer.open({
type: 2,
title: '編輯',
skin: 'layui-layer-rim', //加上邊框
area: ['420px', '350px'], //寬高
end : function () {
location.reload();
},
content: '/file/toEdit'
});
get