我有这个:
var arr = [0, 21, 22, 7];
将最高值的索引返回到另一个变量的最佳方法是什么?
javascript arrays max
arrays ×1
javascript ×1
max ×1