js的Math 对象
作者:互联网
Math对象提供以下一些静态方法:
Math.abs():绝对值
Math.ceil():向上取整
Math.floor():向下取整
Math.max():最大值
Math.min():最小值
Math.pow():幂运算
Math.sqrt():平方根
Math.log():自然对数
Math.exp():e的指数
Math.round():四舍五入
Math.random()返回0到1之间的一个伪随机数,可能等于0,但是一定小于1。
标签:min,对象,ALPHABET,random,js,str,max,Math 来源: https://www.cnblogs.com/forever-xuehf/p/12796372.html