數(shù)據(jù)驅(qū)動(dòng)、堅(jiān)持為客戶提供有價(jià)值的服務(wù)和內(nèi)容
解決微信小程序獲取時(shí)間戳IOS顯示為NaN或null:
var mgetNowDate = (new Date()).toLocaleDateString(); //獲取當(dāng)前日期,格式為2021/1/8
mgetNowDate = mgetNowDate.replace(///g, '-'); //把2021/1/8轉(zhuǎn)為2021-1-8
let curDate = new Date(mgetNowDate).getTi