Having problem with jQuery Countdown? Function serverSync: serverTime

前端 未结 3 730
名媛妹妹
名媛妹妹 2021-01-27 13:22

serverSync: serverTime Function return value from server but I have checked both server and client time both are same.When i called server to sync with server it will not displa

3条回答
  •  孤独总比滥情好
    2021-01-27 13:31

    Shouldn't you call serverTime() here -

    $('#defaultCountdown').countdown({
        until: shortly, onExpiry: liftOff, onTick: watchCountdown, serverSync: serverTime
    });
    

    Like this:

    $('#defaultCountdown').countdown({
        until: shortly, onExpiry: liftOff, onTick: watchCountdown, serverSync: serverTime()
    });
    

提交回复
热议问题