小编oop*_*ops的帖子

how can I cancel an Ajax request?

In phonegap how to cancel an ajax request in program, I would like to set cancel button for control the request when it's too slow

$.ajax({
    type: "GET",
    url: url,
    success: function(m) {
        alert( "success");
    }
});
Run Code Online (Sandbox Code Playgroud)

javascript ajax jquery cancellation

11
推荐指数
2
解决办法
2272
查看次数

标签 统计

ajax ×1

cancellation ×1

javascript ×1

jquery ×1