找出数组中最大值
第一种
var arr = [1,33,23,43,54,62,34,21];
var max = Math.max.apply(null,arry);
console.log(max)
第二种
var arr = [1,33,23,43,54,62,34,21];
var max = arr.sort(function(a,b){
return b-a;
})[0];
console.log(max);
$.ajax请求
$.ajax({
url:'',
type:'get',
dataType:'jsonp',
data:{},
success:function(){},
error:function(){},
})
Mxue note