Layer-related, close the pop-up page, and add the following code to the pop-up page button:
var index = parent.layer.getFrameIndex(window.name);
parent.layer.close(index);
Layer-related, refresh the parent page, add end:function(){location.reload();} on the parent page, the example is as follows:
layer.open({
type: 2,
title: 'To Do',
shadeClose: true,
shade: false,
maxmin: true, //Enable the maximize and minimize button
area: ['90%', '90%'],
content: currentProjectPath+'/jy/xm/View/main-lcbd-view.shtml?'+"type="+tp+"",
end: function () {
location.reload();
}
});