求数组最大值,最小值

时间:2018-07-02 14:44:01   收藏:0   阅读:147
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

 

原文:https://www.cnblogs.com/AnnieShen/p/9253638.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!