A user click a button that makes a request and then click aga开发者_如何学Pythonin and again and again...
I wanted to use xhr.abort(), but I don't know if I can retrieve it from $.load.
Is it possible?
If you want it for an abort, you should perhaps use $.get() instead.
var xhr = $.get('url', function(response) {
$('#myElement').append( response );
});
xhr.abort();
加载中,请稍侯......
精彩评论