下面我有在asp.net
现在,我想用angularjs如下张贴控制器动作。但它不起作用。
$http.post('/api/room/ReportProblem?BusinessID=1' +
'&RoomID=1'+
'&RoomFacilityID=1' +
'&ComponentID=1' +
'&BinImages=null' +
'&ProblemDesc=eee',
{
headers: {'Content-Type': 'application/x-www-form-urlencoded'
}
)
.success(function (response) {
console.log(
});
“它不工作” 是不够具体。在浏览器中调出F12开发人员工具,单击网络选项卡,然后观看正在进行的调用(如果有)。服务器返回什么内容? –
请具体说明您收到哪个http状态码 –