js里setMonth()的问题

js里setMonth()的问题

你好,你把最后一句代码换成我这个就好了:console.log(date.getFullYear()+'-0'+(date.getMonth()+1)+'-'+date.getDate())get
JavaScript120