layer弹出层显示在top顶层

top.layer.open({
type : 2,
title : '修改',
maxmin : true,
shadeClose : false,
area : [ '1200px', '600px' ],
content : prefix + '/edit/' + id ,// iframe的url
end: function(){
reLoad();//刷新层
}
});


// 关闭层
var index = top.layer.getFrameIndex(window.name); // 获取窗口索引
top.layer.close(index);

原文地址:https://www.cnblogs.com/liw66/p/9452965.html