var list=[{id:1,name:'张三',score:123},{id:2,name:'李四',score:135}]

找出数组list中最好的成绩

var max = Math.max.apply(Math, this.list.map(i => {return i.seq }));
结果是135
 
找出数组中list中成绩最差的成绩
var min= Math.min.apply(Math, this.list.map(i => {return i.seq }));
结果是123

相关文章:

  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-13
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2021-11-05
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案