2018年12月17日

摘要: 创建Date new Date() Date对象方法: get系列: getDate() 返回一个月中的某一天(1-31) getDay() 返回一周中的某一天(0-6) getFullYear() 返回四位数的年份 getMonth() 返回月份(0-11 0是一月) getHours() 返回的 阅读全文

posted @ 2018-12-17 19:46 十一点半 阅读(128) 评论(0) 推荐(0) 编辑

摘要: math对象: math abs(x) 返回x的绝对值 math ceil(x) 返回x的上舍入 math.floor(x) 返回x的下舍入 math.max(x) 返回最大值 (必须是数字) math.min() 返回最小值 math.random() 返回0-1之间的随机数 math.round 阅读全文

posted @ 2018-12-17 19:30 十一点半 阅读(120) 评论(0) 推荐(0) 编辑