js 人工获取年月日
var date = new Date(); var months = new Array("01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"); var year = date.getFullYear(); var month = months[date.getMonth()]; var day = date.getDate();
var date = new Date(); var months = new Array("01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"); var year = date.getFullYear(); var month = months[date.getMonth()]; var day = date.getDate();