javascript函数(日期的换算)

B:
 
1.Boolean.toString()
将布尔值转化成字符串
ex:b.toString()
 
2.Boolean.valueOf()
布尔对象的布尔值。
b.valueOf()
 
D:
 
Date.getDate()
返回一个月中的某一天。
date.getDay().
 
Date.getFullYear()
返回年份。
 
Date.getDay()
返回一周中的一天
 
date.getHours()
返回Date对象的小时
原文地址:https://www.cnblogs.com/backuper/p/1313154.html