📜  jquery ajax 请求 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:18.290000             🧑  作者: Mango

代码示例3
$.ajax({
    url: "https://uzhackersw.uz/api/blogdelete/",
    type: "POST",
    data: {
        idbu: a
    },
  timeout: 10000,
    beforeSend: function() {
        $("#dellbl").attr("disabled", !0), $("#dell").attr("disabled", !0), $("#ochnet").attr("disabled", !0);
    },
    success: function(t) {
        t.suecces ? (toastr.success("Fikr sharh o'chirib tashlandi", "Muvafaqiyatli"), $("#mistakeModal").modal("hide"), $("#coment_" + a).remove()) : toastr.error.message("Sharh fikrni o'chirib bo'lmadi", "Xatolik ")
    }
  error: function(t) {
  alert("aaaa")
    }
});