AngularJS $ http发送JSON.stringify对象,导致错误

时间:2014-02-21 12:32:51

标签: jquery json angularjs

我发送json请求请求数据在下面给出了哪些gaves错误。

示例:

ShippingAddress: "{"title":"sdasTEs","name":"dsd","address_line_1":"sda","city":"ads","email":"test@test.com","phone":8788797789797}"
amount: undefined
apptab_id: "17866"
fan_id: undefined
items: undefined
location_id: "771"
mobapp_id: "930"
ordertype: 2
special_instruction: "sadsa"
transaction_id: 0
transaction_type: 0

应该像

ShippingAddress: '{"title":"sdasTEs","name":"dsd","address_line_1":"sda","city":"ads","email":"test@test.com","phone":8788797789797}'
amount: undefined
apptab_id: "17866"
fan_id: undefined
items: undefined
location_id: "771"
mobapp_id: "930"
ordertype: 2
special_instruction: "sadsa"
transaction_id: 0
transaction_type: 0

双引号是一个问题。

0 个答案:

没有答案