摘要: 1. 统计一个数组中,每个值的个数 var cards = [1, 2, 3, 4, 3, 2, 1, 4, 5] var dict = {}; for(var i = 0; i < cards.length; i ++){ dict[cards[i]] = dict[cards[i]] ? dic 阅读全文
posted @ 2020-09-08 11:35 Mike丶 阅读(117) 评论(0) 推荐(0) 编辑