let maxNum=Math.max.apply(Math, params.map(function(o) { return o.num })) console.log(maxNum) //注:params是对象数组