我会得到这个错误一再如何请求发送到JSONP服务器煎茶2.0
未捕获的SyntaxError:意外的标记:ajax.php
{"error":"Server Error</b>: Method file_get_contents unable to open request body!"}
Ext.data.JsonP.request({
url: 'http://yaksee.com/facebook/ajax.php',
callbackKey: 'callback',
params: {
format: 'json',
},
success: function(result) {
if (result) {
alert('success');
alert(result);
} else {
Ext.Msg.alert('Error', 'There was an error retrieving the weather.');
}
}
});
}},
-1,你的服务器端抛出一个错误,有与Sencha Touch无关。 – 2013-05-14 10:33:26
感谢您的回复。发送请求需要真正的api密钥吗? – 2013-05-14 11:50:10