js获取当前时间 yyyy-MM-dd格式

function getDate(){ var nowDate = new Date(); var year = nowDate.getFullYear(); var month = nowDate.getMonth() + 1 < 10 ? "0" + (nowDate.getMonth() + 1): nowDate.getMonth() + 1; v
相关文章
相关标签/搜索