js 倒计时跳转页面
2024-08-23 11:02:39
<script type="text/javascript">
var i = 5;
var intervalid;
intervalid = setInterval("fun()", 1000);
function fun() {
if (i == 0) {
window.location.href = "<%=basePath%>home";
clearInterval(intervalid);
}
document.getElementById("mes").innerHTML = i;
i--;
}
</script>
<span id="littleTip">将在(<strong id="mes">5</strong>)秒钟后返回首页!</span></div>
最新文章
- 搭建TFS 2015 Build Agent环境(一)
- iOS-数据持久化详细介绍
- 【皇甫】☀Spring开题中...
- android 案例二 登录界面
- 连接SQL SERVER 2008需要加端口号
- ECSHOP后台商品列表显示商品缩略图
- POJ 3228 Gold Transportation(带权并查集,好题)
- WPF学习笔记-TextBox光标位置如何放到最后?
- poj1664 (递归)
- Java分页类 Page
- App项目升级Xcode7&;iOS9(续) - This bundle is invalid. The bundle identifier contains disallowed characters
- php的cURL库介绍
- B桥接模式ridge
- 用友金蝶SQL数据库误格式化恢复 SQL数据库修复 SQL数据库恢复 工具 方法
- js原生设计模式——13桥接模式(相同业务逻辑抽象化处理的职责链模式)
- Django_xamdin安装与使用
- Android异常:android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original
- Identity Server 4 - Hybrid Flow - 保护API资源
- Runtime ";Apache Tomcat v6.0 (3)"; is invalid. The JRE could not be found. Edit the server and change the JRE location解决方案
- vim编辑器的设置
热门文章
- CentOS7.3安装electronic-wechat
- JSTL <;c:if test=“eq ne lt..”>;<;/if>; 用法
- Laravel 下配置 Redis 让缓存、Session 各自使用不同的 Redis 数据库
- react native android应用启动画面
- 洛谷—— P1908 逆序对
- run()和start()的区别
- [CODE FESTIVAL 2017]Poor Penguin
- 【点分治】【FFT】Gym - 101234D - Forest Game
- Problem K: 零起点学算法107——统计元音
- Problem C: 调用函数,求a+aa+aaa+....+aa...aa(n个a)