The applet bug new Date cannot convert the timestamp The applet cannot convert the timestamp

The js code used converts timestamps for new Date (time variable).getTime() 

Process the time format of 2022-07-08 16:00:00 into a format like 165545000000

Applet IOS trial version, 2022-07-08 16:00:00 cannot be converted into a timestamp.

Small program IOS real machine debugging can be. Small program Android trial version is also available.

It is necessary to convert YYYY-MM-DD to YYYY/MM/DD to be successfully compatible with both ios and Android.

Use "2022-07-08 16:00:00 "..replace(/T/g, ' ') to 2022/07/08 16:00:00

YYDS

js 2022-06-08T10:21:40.000+00:00 to YYYY-MM-DD, js time with T to YYYY-MM-DD uniapp time with T to YYYY-MM-DD_Code s Beethoven Music Note Blog-CSDN Blog

Guess you like

Origin blog.csdn.net/sun6223508/article/details/125674236