extjs store的ajax请求怎么设置异步? 20
这是我的store中proxy部分proxy:{type:'ajax',url:context+'/mainManage/class_method.action',act...
这是我的store中proxy部分
proxy: {
type: 'ajax',
url : context+ '/mainManage/class_method.action',
actionMethods : {
read : 'POST'
},
start:0,
limit:defaultPageSize,
reader: {
type: 'json',
root: 'totalRoot',
totalProperty:'totalCount'
}
这样写在浏览器上跟踪到是这样的
这应该是同步请求,能设置成异步请求吗?怎么设置?
警告信息是:Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.
我用的是谷歌浏览器,只有在40以上版本中才会有这个警告信息 展开
proxy: {
type: 'ajax',
url : context+ '/mainManage/class_method.action',
actionMethods : {
read : 'POST'
},
start:0,
limit:defaultPageSize,
reader: {
type: 'json',
root: 'totalRoot',
totalProperty:'totalCount'
}
这样写在浏览器上跟踪到是这样的
这应该是同步请求,能设置成异步请求吗?怎么设置?
警告信息是:Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.
我用的是谷歌浏览器,只有在40以上版本中才会有这个警告信息 展开
1个回答
展开全部
Extjs.ajax 中默认的配置就是异步啊。
async : Boolean
true if this request should run asynchronously. Setting this to false should generally
be avoided, since it will cause the UI to be blocked, the user won't be able to interact
with the browser until the request completes.
Defaults to: true
async : Boolean
true if this request should run asynchronously. Setting this to false should generally
be avoided, since it will cause the UI to be blocked, the user won't be able to interact
with the browser until the request completes.
Defaults to: true
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询