Home  >  Article  >  Web Front-end  >  Problem analysis of date implementation in js

Problem analysis of date implementation in js

PHP中文网
PHP中文网Original
2017-06-21 09:42:431498browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn