在设定的时间jquery / javascript警告弹出窗口 [英] jquery/javascript alert popup on a set time
本文介绍了在设定的时间jquery / javascript警告弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您知道是否存在任何Jquery插件在每个时间段显示警报弹出消息,或者在设定的时间段内显示一个警报弹出消息?例如:你的时间以x分钟到期,超时给定。
Do you know if there exists any Jquery plugin that displays an alert popup message every period of time, or one in a set period of time? For instance: your time expires in x minutes, the timeout being given.
谢谢!
推荐答案
为什么插件有原生 window.setInterval javascript函数?
Why plugin when there is a native window.setInterval javascript function?
window.setInterval(function() {
// this will execute every 5 minutes => show the alert here
}, 300000);
当然你可以使用插件可以做更性感的通知而不是无聊的警报。
Of course you could use a plugin to do sexier notifications rather than a boring alert.
这篇关于在设定的时间jquery / javascript警告弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文