详细学习网址

http://www.layui.com/doc/modules/layer.html#use

、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、

//使用方法

后台方法 --》目的是出现异常或成功向前台传消息

Map<String,String> msgMap=new HashMap<String,String>();
msgMap.put("type", "sucess");
msgMap.put("msg", "成功");
request.getSession().setAttribute("msgMap",msgMap);

前台:实例用法

//抖动消息框
function showMsg(msg, icon){
layer.msg(msg, {
icon : icon,//1:正确;2:错误;3:询问;4:锁定;5:失败;6:成功;7:警告
offset : 0,
shift : 6,
time : 4000
});
}

相关文章:

  • 2021-09-15
  • 2022-12-23
  • 2022-12-23
  • 2022-02-17
  • 2021-11-03
  • 2021-10-10
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-30
  • 2022-12-23
  • 2021-07-08
  • 2022-12-23
相关资源
相似解决方案