1
bugsnail OP 仔细再刷了一遍官方文档, 找到答案了:
``` javascript swal({ title: data.msg, type: "success", confirmButtonText: "确定", closeOnConfirm: true }, function (isConfirm) { if(isConfirm){ location.reload(true); }else{ location.reload(true); } }); ``` |