jquery计时器剩余写入时间
我有一个段落字段,我想在其中放置此计时器剩余的秒数:
HTML:
<p>xx seconds remaining</p>
JavaScript:
window.setInterval(retrieveLog, 20000);
我该怎么做?
I have a paragraph field where I want to put the seconds remaining from this timer:
HTML:
<p>xx seconds remaining</p>
JavaScript:
window.setInterval(retrieveLog, 20000);
How can I do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当您调用它时,存储结束时间:
并添加另一个更新文本的间隔:
http://jsfiddle.net /pimvdb/b25KR/
When you call it, store the ending time:
and add another interval that updates the text:
http://jsfiddle.net/pimvdb/b25KR/
尝试此倒计时脚本
Try this countdown script