0
我有一個JSON如下圖所示無法解析JSON
var data = [{
"RestrntArea": "dfew"
}, {
"RestrntArea": "Home"
}, {
"RestrntArea": "Kiran"
}, {
"RestrntArea": "Meridian"
}, {
"RestrntArea": "Office"
}, {
"RestrntArea": "SomeLocation"
}, {
"RestrntArea": "Testing"
}, {
"RestrntArea": "TestLOcation"
}, {
"customer_id": "3"
}, {
"mobile_number": "9876543211"
}];
我怎麼能CUSTOMER_ID從上面的JSON
我已經試過這樣
alert(data.customer_id);
但它給我取未定義。
任何人都可以請幫我