2012-02-25 111 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"} 
    ] 
} } 

回答