参数与后台要求一致,也是post请求,服务端解决跨域问题用的cors。报400错误。如下
发送请求的代码在server.ts文件中,如下:
getMyGroups: function(userId: string, type: string) {
return $http({
method: "post",
url: serverBaseUrl + "/message/getGroup.do",
data:{
tsId: userId,
type: type
}
});
},
求大神指点
http://victorblog.com/2012/12...
解决了,按照上面这篇文章。