在uniapp中使用:
new Date().toLocaleDateString()
在手机端显示:
'Mon Mar 20 2023'
模拟器上打印的:
'2023/3/20'
暂时不知道是小程序的问题还是uniapp自己的问题