JS中Math之random,round,ceil,floor的用法总结

1.Math.random(); 结果为0-1间的一个随机数(包括0,不包括1) </SPAN>   Math.random(); 结果为0-1间的一个随机数(包括0,不包括1) [html] view plaincopyprint? <SPAN style="FONT-SIZE: 18px">   2.Math.floor(num); 参数num为一个数值,函数结果为num的整数部分(返回小于等
相关文章
相关标签/搜索