JSON result is coming as below.
{
"id": 8,
"name": "ads",
"productCategoryMappings": [
{
"id": 3,
"categoryId": 21,
"productId": 8,
}
]
}
How can I access categoryId
in AJAX success
I can access result.name
but can not access result.productCategoryMappings.categoryId
尝试这个
result.productCategoryMappings[0].categoryId
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.