を使用して、jsFiddle の JSON エコー API への単純な AJAX 呼び出しを作成しようとしていますExt.Ajax
。リクエストは正常に行われますが、返されるオブジェクトは空であり、送信する JSON オブジェクトではありません(そうあるべきです)。
コード:
Ext.Ajax.request({
url: '/echo/json/',
jsonData: { foo: 'bar' },
success: function(resp) {
console.log('success!');
console.log(Ext.decode(resp.responseText)); //empty object..? why?
},
failure: function(resp) {
console.log('failure!');
},
});
フィドル: http://jsfiddle.net/nANE7/
応答が単なる空のオブジェクトになるのはなぜですか? エコーバックする予定の foobar JSON 情報はどこにありますか?