JSON中指定值的最大值与最小值

let max = Math.max.apply(
          Math,this.stuRadarChartList.map(function (o) {
            return o.num
          })
        )
let min = Math.min.apply(Math,this.stuRadarChartList.map(function(o) { return o.num; }))

 

posted @ 2023-02-07 17:01  风一样的猿  阅读(61)  评论(0编辑  收藏  举报