============ Problem Description ============
define ([' jquery ', ' underscore ', ' backbone ', ' store ', ' utils ', ' params ', ' constant ', ' lang/en-us ', ' lang/zh-cn ', ' Sgplugin ', ' Plugin/linq '],function ($,_,backbone,store,utils,params,constant,english, Chinese,SGPlugin) {var Sgclient = {baseurl:null,currentrequest:null,//current request/** set Token**/settoken:function (_token) {$.ajaxSetup (_token);}, /** initialization Method **/initialize:function () {var self = This;self.baseurl = Utils.config.get (' BaseUrl ');//android serial number if ( Utils.browerversion (' Android ') {Store.getdevicecode (function (array) {Store.setnumber (array[3]);});
Why the above currentrequest can call the About method
Abortajax:function () {var self = this;if (self.currentrequest) {self.currentRequest.abort ();}},
============ Solution 1============
Currentrequest This thing is also an object. You can find the definition of currentrequest in your JS library inside, there are corresponding methods.
JS Small problem Help