ps: Math.max(x....) 可有多个参数,取出一组数中的最大值
Math.min(x..........) 可有多个参数,取出一组数中的最小值
javascript中的Math对象
原文:http://www.cnblogs.com/molof/p/6202299.html