当前位置: 代码迷 >> Web前端 >> 主页自动跳转方法
  详细解决方案

主页自动跳转方法

热度:120   发布时间:2013-08-24 13:17:55.0
首页自动跳转方法

如果我们需要让首页首先加载scc样式和加载js文件的时候,可以采用以下办法

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html>
<head>
<title></title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

/*两秒后 自动更新到url 为Login/Login.do 的地址*/
<meta http-equiv="Refresh" content="2;url=Login/Login.do" />


<link rel="stylesheet" type="text/css" href="css/main.css" />
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="javascript/iCheck-master/skins/square/blue.css" />
<script type="text/javascript" src="javascript/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="javascript/validate.min.js"></script>
<script type="text/javascript" src="javascript/login.js"></script>
<script type="text/javascript" src="javascript/bootstrap.min.js"></script>
<script type="text/javascript" src="javascript/iCheck-master/jquery.icheck.min.js"></script>
<!--<link href="<c:url value='/css/bootstrap.min.css'/>" rel="stylesheet" />
<link href="<c:url value='/javascript/iCheck-master/skins/square/blue.css'/>" rel="stylesheet" />
<link href="<c:url value='/css/main.css'/>" rel="stylesheet" />
<script type="text/javascript"
??? src="<c:url value='/javascript/jquery-1.9.1.min.js'/>"></script>
<script type="text/javascript"
??? src="<c:url value='/javascript/validate.min.js'/>"></script>
<script type="text/javascript"
??? src="<c:url value='/javascript/login.js'/>"></script>
<script type="text/javascript"
??? src="<c:url value='/javascript/bootstrap.min.js'/>"></script>
<script type="text/javascript"
??? src="<c:url value='/javascript/iCheck-master/jquery.icheck.min.js'/>"></script>
??? -->
</head>
<body>
<h1 id="home">正在进入系统请等待...</h1>
</body>
</html>

  相关解决方案