Countdown timer-php+mysql+js

前端 未结 4 1474
忘掉有多难
忘掉有多难 2021-01-27 17:22

I am working on online examination. In which the examination duration will fetch by mysql(in minutes). I want to show the countdown time on the top of the page.

current

4条回答
  •  野性不改
    2021-01-27 17:58

    Every time you refresh the page, the JavaScript code will run again, so the timer will be reset. To solve this problem, get the content without refreshing the page, that is : Ajax.

提交回复
热议问题