📜  jquery abort ajax - Javascript 代码示例

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

代码示例1
var xhr = $.ajax({
    type: "GET",
    url: "https://www.codegrepper.com/myapi.php",
    success: function(response){
       //do something
    }
});

xhr.abort(); //kill the request