标签:ber fun font 3.0 for new sof object mil
function getMax(Arr) {
if (typeof Arr !="object") {
return null;
}
for (var i=0,max=Arr[i]; i<Arr.length; ++i) {
if (Number(Arr[i])>max) {
max=Arr[i];
}
}
return max;
}
var my_Arr:Array=new Array();
my_Arr=[1,5,9];
trace(getMax(my_Arr));
标签:ber fun font 3.0 for new sof object mil
原文地址:http://www.cnblogs.com/ifworld/p/7638604.html