摘要: 1.min()和max()方法 Math.min()用于确定一组数值中的最小值。Math.max()用于确定一组数值中的最大值。 alert(Math.min(2,4,3,6,3,8,0,1,3)); //最小值 alert(Math.max(4,7,8,3,1,9,6,0,3,2)); //最大值 阅读全文
posted @ 2020-07-09 23:52 顺· 阅读(452) 评论(0) 推荐(0) 编辑