怎么轉(zhuǎn)化成時(shí)間戳,再由時(shí)間戳轉(zhuǎn)化為該種格式???
2 回答

郎朗坤
TA貢獻(xiàn)1921條經(jīng)驗(yàn) 獲得超9個贊
轉(zhuǎn)換成時(shí)間戳:
new Date('2018-08-30T11:59:28.876Z').valueOf()
再轉(zhuǎn)換為那種格式:
let timestamp = new Date('2018-08-30T11:59:28.876Z').valueOf()new Date(timestamp).toISOString()
- 2 回答
- 0 關(guān)注
- 1003 瀏覽
添加回答
舉報(bào)
0/150
提交
取消