📅  最后修改于: 2022-03-11 15:01:24.030000             🧑  作者: Mango
var index = 0;
var value = temp[0];
for (var i = 1; i < temp.length; i++) {
if (temp[i] < value) {
value = temp[i];
index = i;
}
}