如何使用JavaScript设置计时器 [英] How to set a timer using javascript

查看:110
本文介绍了如何使用JavaScript设置计时器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个程序可以在管理页面上设置一个计时器.如果用户参加考试
并且由管理员设置的相应时间已过,该程序将自动关闭.关于我的问题,请帮助我.谢谢!您是否有此示例代码?

I have a program which will set a timer at admin page. If ever the user take an exam
and the respective time is over that is being set by the administrator, the program will automatically closed.Please help me in regards to my problem.Thanks!Do you have a sample code of this?

推荐答案

看看javascript setTimeout函数.

教程-使用setInterval和setTimeout [
Have a look at the javascript setTimeout function.

Tutorial - Using setInterval and setTimeout[^]


这篇关于如何使用JavaScript设置计时器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆