其他分享
首页 > 其他分享> > 每日日报2021.5.18

每日日报2021.5.18

作者:互联网

今天完成内容:

学习web

连接数据库,完善查询项目

 

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@page import="dao.UserDao,bean.User"%>
<%@page import="java.util.ArrayList"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link href="css/bootstrap.min.css" rel="stylesheet">
<script src="js/jquery-1.11.3.min.js" type="text/javascript"></script>
<title>智慧航空系统</title>
</head>
<meta http-equiv="Content-Type" content="text/html; charset=charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="Select" method="post">
<div class="form-row">
<div >
<input type="text" class="form-control" name="dp" id="dp" placeholder="出发地" />
</div>
&emsp;&emsp;
<div>
<input type="text" class="form-control" name="ap" id="ap" placeholder="目的地" />
</div>
&emsp;&emsp;
<div >
<input type="date" class="form-control" name="ndate" id="ndate" id="ndate"/>
</div>
</div>
.
<div class="btn-box">
<input type="submit" value="chaxun">
</div>
</form>
<script type="text/javascript">
var start = document.getElementById("ndate");
var date = new Date();
var month_t = date.getMonth().toString();
if (date.getMonth() + 1 < 10)
month_t = '0' + (date.getMonth() + 1);

var day_t = date.getDate().toString();
if (date.getDate() < 10)
day_t = '0' + (date.getDate())

var dateString = date.getFullYear() + "-" + (month_t) + "-" + day_t;
start.value = dateString;
</script>
</body>
</html>

看视频

遇到问题:

明日目标:

学习web端的开发

学习css

标签:2021.5,日报,18,emsp,month,date,var,getMonth,getDate
来源: https://www.cnblogs.com/leiyu1905/p/14913156.html