Home >Backend Development >PHP Tutorial > js得到时间和php得到时间长度不一样?解决思路

js得到时间和php得到时间长度不一样?解决思路

WBOY
WBOYOriginal
2016-06-13 13:35:25882browse

js得到时间和php得到时间长度不一样?
js得到时间和php得到时间长度不一样?


------解决方案--------------------
传递给 js *1000 即可.

不一样很正常吧?
------解决方案--------------------
js 以毫秒为单位
php 以秒为单位

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