项目中用到的一个很友好的弹出提示窗口。结合ajax很丝滑的与后台交互数据。
引入layer.min.js

layer.msg('你确定删除么?', {
time: 0 //不自动关闭
,btn: ['确定', '取消']
,yes: function(index){
alert(1);
$.ajax({
url:"sjsCompanyApplyController.do?DelHolder",
data:{'id':id,'companyid':companyid},
type:"Post",
dataType:"json",
success:function(data){
layer.msg(data.msg);
},
error:function(data){
$.messager.alert('错误',data.msg);
}
});
layer.close(index);

}
});

相关文章:

  • 2021-11-18
  • 2021-10-27
  • 2021-06-10
  • 2021-06-12
  • 2021-07-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-12
  • 2021-09-30
  • 2022-12-23
  • 2021-11-25
  • 2022-12-23
  • 2021-04-07
相关资源
相似解决方案