Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Array 最大值
var arry = [1,2,3];
Math.max.apply(null,arry);//得到的结果会是3;
Math.min.apply(null,arry);//得到的结果会是1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment