本篇文章记录一下微信小程序 中wxs中用new Date时 出现编译错误Unexpected token `Date
微信小程序中wxs 不支持new Date 也不支持let 写法如下
getDate()
console.log(getDate())
console.log(getDate("2021-05-11"))
本篇文章记录一下微信小程序 中wxs中用new Date时 出现编译错误Unexpected token `Date
微信小程序中wxs 不支持new Date 也不支持let 写法如下
getDate()
console.log(getDate())
console.log(getDate("2021-05-11"))