利用 javascript 获取 数字序列的最大值和最小值

var prices = [ 19,20,70];	
const min = Math.min(...prices);
const max = Math.max(...prices);

  

posted @ 2023-10-17 07:30  物华天宝关耳  阅读(18)  评论(0)    收藏  举报