JS日期对象的使用方式

JS日期对象的创建和使用方式 var oDate = new Date(); //创建日期对象 oDate.getFullyear(); //年 oDate.getMonth() + 1; //月份的格式是0-11 所以显示的时候我们要+1 oDate.getDate(); //日 oDate.getHours(); //时 oDate.getMinutes(); //分 oDate.getSec
相关文章
相关标签/搜索