JS获取时间
var ddd = new Date();
获取年份:
var year = ddd.getFullYear();
获取月份:
var month = ddd.getMonth() + 1;
获取日:
var mydate = ddd.getDate();
JS获取时间
var ddd = new Date();
获取年份:
var year = ddd.getFullYear();
获取月份:
var month = ddd.getMonth() + 1;
获取日:
var mydate = ddd.getDate();