我有像
这样的http获取请求{"meta":{"code":200,"requestId":"595cc7784c1f67701d721227"},"response":{"venues":[{"id":"5564370c498e52484ec3249f","name":"Aras Döner & Kokoreç","contact":{},"location":{"lat":41.187417726573926,"lng":27.76829713785891,"labeledLatLngs":[{"label":"display","lat":41.187417726573926,"lng":27.76829713785891}],"distance":12,"cc":"TR","country":"Türkiye","formattedAddress":["Türkiye"]},"categories":[{"id":"4bf58dd8d48988d16e941735","name":"Fast Food Restoranı","pluralName":"Fast Food Restoranları","shortName":"Fast Food","icon":{"prefix":"https:\/\/ss3.4sqi.net\/img\/categories_v2\/food\/fastfood_","suffix":".png"},"primary":true}],"verified":false,"stats":{"checkinsCount":2038,"usersCount":740,"tipCount":0},"allowMenuUrlEdit":true,"beenHere":{"lastCheckinExpiredAt":0},"specials":{"count":0,"items":[]},"hereNow":{"count":0,"summary":"Burada kimse yok","groups":[]},"referralId":"v-1499252600","venueChains":[],"hasPerk":false}],"confident":false}}
如何打印特定属性,例如“场地”名称= ...
答案 0 :(得分:0)
您可以使用console.log()
在控制台中打印值例如,要在回复中打印所有场地的名称......
<button ng-click="getInfo()">getInfo</button>