时间戳转换成xxxx-xx-xx格式//先将时间戳转换成"Thu Feb 25 2021 11:08:51 GMT+0800 (中国标准时间)" var startdate = new Date(); var Y = startdate.getFullYear() + "-"; var M = (startdate.getMonth() + 1 < 10 ? "0" + (startdate.getMonth() + 1) : startdate.getMonth() +
摘要由CSDN通过智能技术生成
时间戳转换成xxxx-xx-xx格式
//先将时间戳转换成"Thu Feb 25 2021 11:08:51 GMT+0800 (中国标准时间)"var startdate =newDate();varY= startdate.getFullYear()+"-";varM</
时间戳转换成xxxx-xx-xx格式//先将时间戳转换成"Thu Feb 25 2021 11:08:51 GMT+0800 (中国标准时间)" var startdate = new Date(); var Y = startdate.getFullYear() + "-"; var M = (startdate.getMonth() + 1 < 10 ? "0" + (startdate.getMonth() + 1) : startdate.getMonth() +