text: "确定提交吗",
4 icon: 'info',
5 buttons: {
6 cancel: true,
7...4、错误信息提示
1 swal("删除", "删除成功", 'error');
效果:
?...title: "审批",
3 text: "确定通过审批吗",
4 icon: 'warning',
5 buttons: {
6 cancel: "取消",
7...五、相关问题
1、传函数错误
Swal(“确定提交吗”, function(){}, ‘error’ ); //这种写法在我用的这个版本中是错误的,我的这个版本支持then(), 不支持直接在参数中写方法...4 type: "warning",
5 showCancelButton: true,
6 confirmButtonColor: "#DD6B55",
7