Sencha touch 如何在senchatouch中的ajax调用restweb服务请求中添加头作为参数
有人能告诉我如何在SenchaTouch中的ajax调用rest web服务请求中添加头作为参数吗Sencha touch 如何在senchatouch中的ajax调用restweb服务请求中添加头作为参数,sencha-touch,sencha-architect,sencha-touch-2.1,Sencha Touch,Sencha Architect,Sencha Touch 2.1,有人能告诉我如何在SenchaTouch中的ajax调用rest web服务请求中添加头作为参数吗 谢谢以下是如何在sencha touch AJAX调用中添加标题 Ext.Ajax.request({ url: 'myUrl', headers: { "Content-Type": "application/json" }, callback: function(options, success, response) { console.lo
谢谢以下是如何在sencha touch AJAX调用中添加标题
Ext.Ajax.request({
url: 'myUrl',
headers: {
"Content-Type": "application/json"
},
callback: function(options, success, response) {
console.log(response.responseText);
}
});
下面是如何在sencha touch AJAX调用中添加标题
Ext.Ajax.request({
url: 'myUrl',
headers: {
"Content-Type": "application/json"
},
callback: function(options, success, response) {
console.log(response.responseText);
}
});