using javascript countdown with server side time

前端 未结 3 1638
没有蜡笔的小新
没有蜡笔的小新 2020-12-16 06:02

I have two scripts one in PHP to get the time server side, and the other is a JavaScript countdown based on a date and time. I am not sure what I am doing wrong, but when I

3条回答
  •  情歌与酒
    2020-12-16 06:35

    You should provide both current time and end time to clients because they use their own system time against to the server's time.

    Here are the entire solution of this problem.

    
    
    
    

提交回复
热议问题