📜  ajax beforesend - Javascript 代码示例

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

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

xhr.abort(); //kill the request