如何在jsp页面中执行coundown计时器 [英] how to do coundown timer in a jsp page
问题描述
嗨
我正在开发一个简单的在线测试应用程序。我现在做的是随机存储来自数据库中的字符串数组中的问题并将其放入会话对象中。熟悉得分和问题计数器在会话中。当用户通过点击下一个按钮请求进入控制器页面并更新分数和标记来回答问题时,再次使用新问题重新加载测试页面。我的问题是当我在测试页面中插入一个javascript代码,并且测试页面的请求来自控制器计时器正在重置。有任何方法可以获得倒数计时器。没有计时器应用程序工作正常..
Hi
Im developing a simple online test application.What im doing is store randomly taken questions from database in a string array and put it in a session object.Similiarly score and question counter is in session.when user answers a question by clicking the next button request gone to controller page where scores and marks are updated and again reload the test page with new question.my problem is when i insert a javascript code in test page,and the request for test page came from controller timer is resetting.is there any way to get a countdown timer.Without timer application works fine..
推荐答案
您可以查看几个基于Javascript的计时器。例如:如何在我的网页上创建JavaScript倒数计时器? [ ^ ]
There are few Javascript based timers that you can look at. For example: How do I create a JavaScript countdown timer on my Web page?[^]
这篇关于如何在jsp页面中执行coundown计时器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!