.加载效果
function layuiLoading(msg){ layui.use(['layer', 'form'], function(){ index = layer.load(0, {shade: false}); }); }
.移除加载效果
function layuiRemoveLoading(){ layui.use(['layer', 'form'], function(){ var layer = layui.layer layer.close(index); //调用close方法,关闭全局变量index对应的加载效果 }); }
.Layui简单的弹窗转页
layer.open({
type: 2,
title: '数据选择',
fix: false,
maxmin: true,
shadeClose: true,
shade: 0.8,
area: ['950px', '500px'],
content: 'Default.aspx',
end: function () {
location.reload();
}
});