摘要: 一、日期函数(Date())设置本地日期:年月日时分秒1、声明日期var date=new Date();//创建一个新的日期函数2、使用函数date.getTime();//提倡使用,date.valueOf();得到距离1970年的毫秒数 console.log(Date().now());// 阅读全文
posted @ 2017-09-16 23:00 半指温柔乐 阅读(468) 评论(0) 推荐(0) 编辑