Javascript 为什么AngularJS 2 HTTP Post只接受字符串数据?
我想知道为什么在AngularJS 2中(2.0.0-beta.13),HTTP Post方法只接受字符串数据作为主体,而不像AngularJS 1那样接受JavaScript对象 AngularJS-1:Javascript 为什么AngularJS 2 HTTP Post只接受字符串数据?,javascript,angularjs,angular,http-post,Javascript,Angularjs,Angular,Http Post,我想知道为什么在AngularJS 2中(2.0.0-beta.13),HTTP Post方法只接受字符串数据作为主体,而不像AngularJS 1那样接受JavaScript对象 AngularJS-1: $http.post(someUrl,someObject) AngularJS-2: http.post(someUrl, JSON.stringify(someObject)) 谢谢,因为还没有实现对其他类型的支持
$http.post(someUrl,someObject)
AngularJS-2:
http.post(someUrl, JSON.stringify(someObject))
谢谢,因为还没有实现对其他类型的支持