swal()弹出删除确认框
//<a class=btn btn-mini btn-danger title="删除" οnclick="delGridBuilding(${bo.id });"><i class=icon-trash></i></a> function delGridBuilding(poid) { swal( { title : "Are you sure?", text : "确定要删除吗?", type : "warning", showCancelButton : true, confirmButtonColor : #DD6B55, confirmButtonText : Yes, cancelButtonText : "No", closeOnConfirm : false }, function(isConfirm) { if (isConfirm) { $.ajax({ url : , type : post, data : id= + poid, dataType : json, async : false, success : function(d) { if (d) { swal({ title : "YES", text : "操作成功!", type : "success", }, function() { window.location.reload(); }); } else { swal("No", "删除失败,请稍后再试!", "error"); } }, error : function(d) { swal("No", d, "error"); } }); } }); }
ミ(ノ゜д゜
上一篇:
多线程四大经典案例
下一篇:
Java File类详解