从JS Date对象获取YYYYMMDD格式的字符串?
我试着用JS把date object变成一根线YYYYMMDD格式。有比连接更简单的方法吗?Date.getYear(), Date.getMonth(),和Date.getDay()?
date object
YYYYMMDD
Date.getYear()
Date.getMonth()
Date.getDay()
撒科打诨
相关分类