我有一串json,想在前端获取里面的list,怎么获取呢
{
"data": {
"orgId":"2179468900096256",
"invoiceSrcSystem":2,
"agentId":2185044190269952,
"invAgentId":2185044190269952,
"currency":"2177704246319360",
"exchangeRateType":"rkvvw7qj",
"natCurrency":"2177704246319360",
"vouchdate":"2021-06-08 13:33:02",
"source":"st_salesout",
"invDirection":2,
"invoiceType":0,
"exchRate":1,
"oriSum":2,
"oriMoney":2,
"oriTax":0,
"natSum":2,
"natMoney":2,
"natTax":0,
"verifystate":0,
"status":0,
"transactionTypeId_name": "销售发票",
"transactionTypeId": "2177704243204365",
"saleInvoiceDetails": [
{
"source":"st_salesout",
"srcVoucherNo":"XSCK20210520000001",
"taxRate": 0,
"productId": 2206380025712896,
"productCode":"1-KEERGK",
"skuCode":"1-KEERGK",
"skuId": 2206380031594752,
"qty": 1,
"priceQty": 1,
"natUnitPrice": 2,
"natTaxUnitPrice": 2,
"natMoney": 2,
"natSum": 2,
"oriUnitPrice": 2,
"oriTaxUnitPrice": 2,
"sourceOriPrice": 2,
"oriMoney": 2,
"oriSum": 2,
"oriTax": 0,
"invPriceExchRate": 1,
"sourceid": 2265751799943936,
"sourceautoid": 2265751799943937,
"taxId": "2177704246778113",
"invoiceSource": 4
}
],
"_status": "Insert"
}
}
就是获取data里面的saleInvoiceDetails,如何获取呢 用 var saleInvoiceDetails = data.saleInvoiceDetails;获取的值为空