How to abort an AJAX request in jQuery 3.0?
this.r = $.ajax();
There is no interrupt method in the promise, for example, in older versions of jQuery
if(this.r && this.r.state() == 'pending') { this.r.abort(); <- error not working }
In jQuery 3.0, jQuery.Deferred supports Promises / A +. A revocation specification is still under development, so it is currently not possible to abort an AJAX request.
Also see cancellation status promises for some reference specification information.
Source: https://habr.com/ru/post/1659812/More articles:Aligning two divs in separate containers at the same time - htmlJVM heap used - when to create an alert - javaКак узнать, какие опции доступны в качестве третьего аргумента ListMapper-> add() в SonataAdminBundle - symfonyAndroid checks if the locked screen is installed - androidIPreviewHandler Unload COM Objects takes a lot of time and freezes the application - winapiWarning over range when repeating all u8 values - rustpyspark dataframe фильтр или включить на основе списка - filterAdding a line break after the full title bar in a line - javascriptIs there a way to remove units from calc function in CSS - cssProblem in Xcode 8.1 Storyboard Storyboard - iosAll Articles