获取最大值:

Math.max.apply(Math, array.map(function(o) {
	return o.value; // 需要比较的值
}))

获取最小值:

Math.min.apply(Math, array.map(function(o) {
	return o.value; // 需要比较的值
}))
                        原文链接:https://blog.csdn.net/cargelzhong/article/details/81458610
                                    首先针对的是阿里巴巴的jar包  fastjson-1.2.2.jarJSONArray jsons ;for(int i=0,i<jsons.size(),i++){    JSONObject obj=jsons.getJSONObject(i);    if(obj.containsKey("basic")){        JSONArray array = obj.get("bas...
                                    var name_value= [{"name":"闵行区","value":20},{"name":"浦东新区","value":30},{"name":"杨浦区","value":10}]
            var list = new Array();
            for(var i in name_value){
                                    var  numbers = [5,23 , 140 , 515 , 2280 , 400 , 1050, 4011];
var maxInNumbers = Math.max.apply(Math, numbers);
var minInNumbers = Math.min.apply(Math, numbers);