首页 > Web开发 > 详细

JS常用功能

时间:2015-01-08 17:50:25      阅读:305      评论:0      收藏:0      [点我收藏+]
JS随机字符串
Math.random().toString(16).substring(2); //8位 Math.random().toString(36).substring(2); //16位
JS最大值和最小值
Math.max.apply(Math, [1,2,3]) //3 Math.min.apply(Math, [1,2,3]) //1
 

JS常用功能

原文:http://www.cnblogs.com/eaysun/p/4211292.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!