Home > Article > Web Front-end > Problem analysis of date implementation in js
I checked the project today and found that there was a bug. Since it did not meet the requirements of the sql statement, it took +1 day for the front-end web page to be displayed and transmitted to the back-end.
I checked online what others had written and found many There are some loopholes, but after my own summary, I wrote a solution that meets my requirements
str = $('前台获得时间time').val().slice(5) + "- " + $('前台获得时间time'' } 希望我写的东西对其他人有帮助
The above is the detailed content of Problem analysis of date implementation in js. For more information, please follow other related articles on the PHP Chinese website!