需要在jquery之后导入

<link rel="stylesheet" href="${pageContext.request.contextPath }/js/layer/skin/layer.css">

<script src="${pageContext.request.contextPath }/js/layer/layer.js"></script>

简单提示:
layer.msg('',{time:2000});

不带确定的提示 5哭,6笑,7感叹:
layer.msg('', {icon: 5,time:2000});
layer.msg('', {icon: 5,time:2000},function(){  })

带确定的提示
layer.alert('', {icon: 5,skin: 'layer-ext-moon'},function(){  })

confirm:

layer.confirm('请确认数据检查无误并提交?', {icon: 3, title:'提示'}, function(index){
  //do something
  
  layer.close(index);
});

官网地址:http://layer.layui.com/

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-07
  • 2021-08-30
  • 2022-02-03
猜你喜欢
  • 2021-06-12
  • 2021-11-25
  • 2022-12-23
  • 2022-12-23
  • 2021-08-20
  • 2021-12-31
相关资源
相似解决方案