Making Live Clock javascript

前端 未结 4 993
没有蜡笔的小新
没有蜡笔的小新 2020-12-30 15:44

does anyone know how to make live javascript time running..

i have this php code

    $expiredate = date(\'d m Y G:i:s\', $rdate1);
    $f_ex_date =          


        
4条回答
  •  天涯浪人
    2020-12-30 16:14

    PHP, since it is server-side, can't be live. You'll have to do the date manipulation (at least, the stuff that changes) and update the DOM using JavaScript, which is client-side.

    Steve

提交回复
热议问题