$("#address_del_{
{ address.id }}").click(function () {
swal({
title: "确认删除?",
text: "删除后无法恢复!",
type: "info",
showCancelButton: true,
cancelButtonText: "取消",
showConfirmButton: true,
confirmButtonText: "确定"
}, function () {
$.ajax({
url: "{
{ url_for('Index.addressDel') }}",
data: {
"id":{
{ address.id }}
},
success: function (data) {
if (data.is_success) {
swal({
title: data.message,
text: "",
type: "success"
}, function () {
window.location.reload();
});
} else {
双重swal不生效
最新推荐文章于 2022-06-09 09:35:14 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)