Wechat applet obtains timestamp , Why is subtraction more 60 Many days ? Is the calculation wrong ? Are there any senior experts who can see the problem at a glance
CSDN Q & A 2021-12-30 06:59:52 阅读数:293
Wechat applet obtains timestamp , Why is subtraction more 60 Many days ? Is the calculation wrong ? Are there any senior experts who can see the problem at a glance
Make a scene ,js The month inside is from 0(1 month ) To 11(12 month ) Of , Your month is 13, Will be converted to 2022 year 2 month , So the calculated time is two months apart , Not habitually 1 Months .
Reference link :https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Date
版权声明:本文为[CSDN Q & A]所创,转载请带上原文链接,感谢。 https://primo.wiki/2021/12/202112300659507569.html