Clock on webpage using server and system time?

前端 未结 8 976
无人及你
无人及你 2021-01-02 03:34

I need to add a clock to a web page. The clock needs to be synchronized with a server but I really don\'t want to have it constantly check the server as the page will be ope

8条回答
  •  悲哀的现实
    2021-01-02 04:12

    one idea is to response datetime on page when it is requested. like:

    
    your serveside codes,
    
    server codes
    
    
    

    **note : this is idea only, code may not work

提交回复
热议问题