2012-02-25 112 views
0

我想问一个问题,请,我有以下的,我把它抄了一些源代码:Ajax请求

Ext.Ajax.request({ 
    url: 'http://localhost/day1/new.php', 
    method:'GET', 
    params:{format:'json'}, 
    success: this.log, 
    failure: this.fail, 
    scope:this 
}); 

我真的不明白什么是属性(PARAMS )是指?我应该投入什么价值以及它在请求中应该做什么?

我要检查以下JSON格式是否正确,它遵循的标准:

{"count":"2", 
"results":{ 
    "result":[ {"description":"Cholet", 
       "lat":"16.620974289775", 
       "lng":"16.620974289775"} 
    ] 
} } 

回答