日期函数(Date())
这个函数 (对象) 可以设置我们本地 日期。 年月日 时分秒
1.创造声明一个新的日期函数 赋值给了 date var arr = new Array();
2.使用函数:
var date = new Date();
date.getTime();
date.valueOf(); 得到 距离 1970年的毫秒数最终效果:
编写HTML,CSS,JS
日期函数(Date())
这个函数 (对象) 可以设置我们本地 日期。 年月日 时分秒
1.创造声明一个新的日期函数 赋值给了 date var arr = new Array();
2.使用函数:
var date = new Date();
date.getTime();
date.valueOf(); 得到 距离 1970年的毫秒数最终效果:
编写HTML,CSS,JS