extjs ajax 同步实现

先下载ext-basex补丁包。

 

 

JScript code
   
   
   
   
var results; Ext.Ajax.request({ method : ' POST ' , url : " /erips/portfolio/srcs/getScoreSheetHeaders.htm " , async : false , success : function (response) { results = Ext.util.JSON.decode(response.responseText).root; } });

 

var results;
    Ext.Ajax.request({
                method :
'POST',
                url :
"/erips/portfolio/srcs/getScoreSheetHeaders.htm",
                async :
false,
                success :
function(response) {
                    results
= Ext.util.JSON.decode(response.responseText).root;
                }
            });

 

调用:
Ext.Ajax.request({
url:'',
scope:this,
sync:true,
success:function(){}
});   


 

你可能感兴趣的:(Ajax,Ajax,职场,ExtJs,sync,休闲)