返回数组中最小/大值,适用数组

//返回数组中的最小值

function min(target){
    return Math.min.apply(0,target);          
}

//返回数组中的最大值

 function max(target){
     return Math.max.apply(0,target);
 }
原文地址:https://www.cnblogs.com/violinxliu/p/3834888.html