摘要: parseInt:p是小写字母;Math.random();的返回值范围是大于等于零且小于一的double类型的值;parseInt(),floor()为向下取整,ceil()为向上取整;eg:Math.random()*5,那么它的值就在0-5中var num = Math.random();//... 阅读全文
posted @ 2016-01-25 10:57 _Nestling 阅读(108) 评论(0) 推荐(0) 编辑