WebContent/WEB-INF/jsp/app/index.jsp
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@include file="common.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>开始点单</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<script type="application/x-javascript">
/* 页面加载的时候添加一个定时器,0秒之后执行hideURLbar函数。hideURLbar函数将页面滚动至坐标(0,1)
因为chrome等浏览器会有滚动缓存功能,比如你在A页面滚动后跳转到B页面,点击返回键回到A页面,会发现滚动条位置仍然保持 */
addEventListener("load", function() {
setTimeout(hideURLbar, 0);
}, false);
function hideURLbar(){
window.scrollTo(0,1);
}
window.onload = function(){
//获取用户选中的物品类型
var tableStatus = "${tableStatus}";
var agileinfo_search = document.getElementById("agileinfo_search");
//获取下拉框中所有的option
var options = agileinfo_search.options;
$.each(options,function(i,item){
//如果option的value值等于用户选择的tableStatus就被选中
$(item).attr("selected",item.value == tableStatus);
})
}
function dataChange(obj){
//获取用户输入的餐桌名
var tableName = $("#tableName").val();
//餐桌的使用状态
var tableStatus = obj.value;
window.location = "${pageContext.request.contextPath}/app/index.do?method=submitTable&tableName="+tableName+"&tableStatus="+tableStatus;
}
</script>
</head>
<body>
<!-- banner -->
<div class="banner about-w3bnr">
<!-- header -->
<div class="header">
<!-- navigation -->
<div class="navigation agiletop-nav">
<div class="container">
<nav class="navbar navbar-default">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header w3l_logo">
<h1 style="font-size: 30px; margin-top: 15px;"><a href="${pageContext.request.contextPath}/app/food.do">餐厅点餐系统</a></h1>
</div>
<div class="collapse navbar-collapse" id="bs-megadropdown-tabs">
后面还有 84 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
