因此,我在订单确认页面上显示了以下 JSON:
var orderDetails = {
"orderID": "o32770183",
"orderQty": 3,
"orderTotal": 575.97,
"orderShipping": 49.97,
"orderDiscount": 0,
"orderTax": 39.74,
"orderCity": "Norwalk",
"orderState": "Connecticut",
"itemId": [
"sku500134",
"sku230312",
"sku133846"
],
"itemQty": [
1,
1,
1
],
"itemPrice": [
159.99,
225.99,
189.99
],
"itemName": [
"The 'Inaugural' Raymond R Cabernet Sauvignon",
"H de l'Hospitalet",
"Chateau Florie Aude"
]
}
提取数据的最佳方法是什么?