我在stackoverflow本身以及extjs文档中看到过几个例子。但我只能看到404错误。
Ext.Ajax.request({
url: '/project-desktop-service/decisions.json',
method: 'post',
headers: {'Content-Type': 'application/json'},
params: {
rolename: 'rolename'
},
success: function(){console.log('success');},
failure: function(){console.log('failure');}
});
我也尝试过删除和添加内容类型的不同组合,添加绝对URL等。但每次结果都是同样的失败。
答案 0 :(得分:0)
来自Wiki:
The 404 or Not Found error message is a HTTP standard response code indicating that
the client was able to communicate with the server,
but the server could not find what was requested.
唯一没有功能的是你的URL或你要求的东西不是。