javascript - About the problem that page time keeps accumulating
淡淡烟草味
淡淡烟草味 2017-05-19 10:23:46
0
3
775

Now there is a requirement to accumulate time on the page, indicating how many days, hours, minutes, and seconds the platform has been running stably. . . How can this be achieved, please God. . . . I would like to thank you

淡淡烟草味
淡淡烟草味

reply all(3)
淡淡烟草味

To make it simple, choose a time point, such as 0:00 on April 1, 2017.

Then you get the current time period, subtract the time point you set from the current time period, and you have a time. Just refresh every second.

仅有的幸福

Directly write the front-end to death, and let the time keep adding up from the time you write the static page

PHPzhong

There needs to be an interface. Every time you refresh the page, you have to get how long it has been running so far, and then keep adding up the timestamp.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template