layui弹出框(点击按钮执行方法)
function alertTips(){
layui.use('layer', function() {
layer.open({
type: 2,
title: '数据维护',
area: ["600px", "400px"],
shade: 0.5,
maxmin: true,
offset: [80, 0],
content: 'changepassword.html',
zIndex: layer.zIndex,
success: function(layero) {
layer.setTop(layero);
}
});
});
}