how to update time regularly?

后端 未结 10 865
再見小時候
再見小時候 2020-12-03 02:11
function timeClock()
{
    setTimeout(\"timeClock()\", 1000);        
    now = new Date();
    alert(now);
    f_date = now.getDate()+\" \"+strMonth(now.getMonth())         


        
10条回答
  •  误落风尘
    2020-12-03 02:34

    There may be something in timeago jQuery plugin you can hook into, but I haven't honestly tried...

    http://timeago.yarp.com/

提交回复
热议问题