js中有个方法$.ajax({ //一个异步的方法,且很耗时url:...,...async:true,success : function(data){ //todo:.....}})
在这个方法被调用的时候,我点击一个按钮,想跳转到其他页面(window.location.href = ".../a.html"),但是页面一直无法跳转
请问,在跳转时该如何停止ajax的请求,直接跳到下一页??