2
我想知道爲什麼在AngularJS 2(2.0.0-beta.13)HTTP POST方法只接受字符串數據作爲主體,而不是一個JavaScript對象如在AngularJS外殼1爲什麼AngularJS 2 HTTP Post只接受字符串數據?
AngularJS-1:
$http.post(someUrl,someObject)
AngularJS-2:
http.post(someUrl, JSON.stringify(someObject))
感謝