-1
我在下面有這個json,如果有更多的對象具有更多的國家和獎牌,那麼角度最好的方法是什麼?在angularJs中匹配來自同一陣列中不同對象的值
[
{
"athlete": "KOGO, Micah",
"country": "KEN",
"sex": "Men",
"event": "10000m",
"medal": "Bronze"
},
{
"athlete": "BEKELE, Kenenisa",
"country": "ETH",
"sex": "Men",
"event": "10000m",
"medal": "Gold"
},
{
"athlete": "SIHINE, Sileshi",
"country": "ETH",
"sex": "Men",
"event": "10000m",
"medal": "Silver"
},
{
"athlete": "FLANAGAN, Shalane",
"country": "USA",
"sex": "Women",
"event": "10000m",
"medal": "Bronze"
}
]
什麼是你想要的輸出? –
顯示每個國家的獎牌數和贏得的獎牌 – ronoc4
好的,您希望輸出結構如何?我想你可能能夠提供基於樣本輸入的樣本輸出。 –