标签:ble btn bsp title apt rap 操作 error info
1 $(‘#btn_delete‘).click(function () { 2 var id = pgHelper.chkCurId(); if (!id) { return false; } 3 1 swal({ 2 type: "warning", 3 title: "与设置的密码不一致" 4 }); ( 4 { 5 title: "确定删除记录?", 6 type: "warning", 7 showCancelButton: true, 8 confirmButtonColor: "#DD6B55", 9 confirmButtonText: "提交!", 10 cancelButtonText: "取消", 11 closeOnConfirm: false, 12 closeOnCancel: false 13 }, 14 function (isConfirm) { 15 if (isConfirm) { 16 swal({ 17 title: "删除成功!", 18 type: "success" 19 }, function () { 20 $.ajax({ 21 url: ‘/Estate/CommBusiness/OpCommBusinessInfo?isdel=1&id=‘ + id, 22 type: "post", 23 data: {}, 24 success: function (msg) { 25 var result = JSON.parse(msg); 26 if (result.ret == 1) { 27 swal("删除成功", "", "success"); 28 $table.handler.bootstrapTable(‘refresh‘); 29 } 30 } 31 }); 32 }) 33 34 } 35 else { 36 swal({ 37 title: "已取消", 38 text: "您取消了切换操作!", 39 type: "error" 40 }) 41 } 42 } 43 ) 44 45 });
简便提示
1 swal({ 2 type: "warning", 3 title: "与设置的密码不一致" 4 });
标签:ble btn bsp title apt rap 操作 error info
原文地址:https://www.cnblogs.com/fyssl/p/9567537.html