WebContent/WEB-INF/user/header.jsp

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ page contentType="text/html;charset=UTF-8" language="java"
	pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<base href="<%=basePath%>">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>科研检索管理系统</title>
<script src="resource/js/jquery-1.11.0.min.js" type="text/javascript"></script>
<link href="res/css/bootstrap.min.css" rel="stylesheet">
<link href="res/css/style.css" rel="stylesheet">
<script src="res/js/bootstrap.min.js" type="text/javascript"></script>
<script type="text/javascript">
        //获取当前时间并拼接放到div中的函数
          function nowTime(){
              var nowDate = new Date();
              var year = nowDate.getFullYear();
              var month = nowDate.getMonth()+1;
              month = month>9 ? month : "0" + month; 
              var date = nowDate.getDate();
              date = date>9 ? date : "0" + date;
              var hour = nowDate.getHours();
              hour = hour>9 ? hour : "0" + hour;
              var miunte = nowDate.getMinutes();
              miunte = miunte>9 ? miunte : "0" + miunte;
              var second = nowDate.getSeconds();
              second = second>9 ? second : "0" + second;
              
              $("#time").text(year+"年"+month+"月"+date+"日"+hour+"时"+miunte+"分"+second+"秒");
          }
          //加载后执行一次函数,以后每秒再执行
          $(function(){
              nowTime();
              setInterval("nowTime()", 1000);
          });
      </script>
</head>
<body>
	<%-- <!--导航栏部分-->
	<nav class="navbar navbar-default navbar-fixed-top" style="height:30px;">
		<div class="container-fluid"  style="background-color:#fff;">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle collapsed"
					data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"
					aria-expanded="false">
					<span class="sr-only">Toggle navigation</span> <span
						class="icon-bar"></span> <span class="icon-bar"></span> <span
						class="icon-bar"></span>
				</button>
				<div   ><a class="navbar-brand" ><h4  id="time"></h4></a></div>
			</div>

后面还有 33 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。