Ajax异步同步原理

Ext.Ajax.request({

url:'action路径'

sync:true //false 表示异步/同步

},function(response){

alert(2)

})

当sync:true时,输出结果为2 1

当sync:false时,输出结果为 1 2

posted @ 2014-06-23 15:54  @敏敏  阅读(234)  评论(0编辑  收藏  举报