求数组最大值,最小值

Math.max.apply(this,[120,129,56,34,98])  //129
Math.max.call(this,120,129,56,34,98)  //129
Math.min.apply(this,[120,129,56,34,98])  //34
Math.min.call(this,120,129,56,34,98)  //34

 

posted @ 2018-07-02 14:27  花开半夏shen  阅读(133)  评论(0编辑  收藏  举报