js 对象和高阶函数简介

 

1. js data 对象    参考:https://www.runoob.com/jsref/jsref-obj-date.html

var d = new Date();
var d = new Date(milliseconds);
var d = new Date(dateString);
var d = new Date(year, month, day, hours, minutes, seconds, milliseconds);

getDay();
getDate();
getHours();

 

 

 

 

 

 

 

 

 

你可能感兴趣的:(Node.js,JavaScript,前端)