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
相關文章
相關標籤/搜索