layer相关的,关闭弹出的页面,弹出页面按钮添加以下代码:
var index = parent.layer.getFrameIndex(window.name);
parent.layer.close(index);
layer相关的,刷新父页面,在父页面,添加end:function(){location.reload();},示例如下:
layer.open({
type: 2,
title: '待办处理',
shadeClose: true,
shade: false,
maxmin: true, //开启最大化最小化按钮
area: ['90%', '90%'],
content: currentProjectPath+'/jy/xm/View/main-lcbd-view.shtml?'+"type="+tp+"",
end: function () {
location.reload();
}
});