摘要:
var arr = ['Car', 'Car', 'Truck', 'Boat', 'Truck'];var hist = {};arr.map(function(a) {if (a in hist) hist[a]++;else hist[a] = 1;});console.log(hist); 阅读全文
posted @ 2017-09-20 18:47
neo_o
阅读(605)
评论(0)
推荐(0)
愿你的生活只有诗和远方