const numbers = [5, 12, 8, 23, 6];
const maxValue = Math.max(...numbers);
console.log("数组中的最大值是:" + maxValue);
jsは配列の最大値を取得します
おすすめ
転載: blog.csdn.net/qq_44063746/article/details/132165213
ランキング