javascript一些常用代码块

Array.prototype.max = function(){
  return Math.max.apply({},this)
}
Array.prototype.min = function(){
  return Math.min.apply({},this)
}
原文地址:https://www.cnblogs.com/aaa6818162/p/2681383.html