layui日期控件出现乱码

讨论 未结 2 72
Mysoulmyheart
Mysoulmyheart 2019-5-16
悬赏:20飞吻
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<% String basePath = request.getScheme() + "://" + request.getServerName() +
":" + request.getServerPort() + request.getContextPath() + "/";%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta charset="UTF-8">
<title>用户注册</title>
<link rel="stylesheet" type="text/css" href="layui/css/layui.css" />
<script src="layui/layui.js" type="text/javascript" charset="utf-8"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" type="text/javascript" charset="UTF-8"></script>
<script src="js/distpicker.js" type="text/javascript" charset="UTF-8"></script>
<script src="js/register.js" type="text/javascript" charset="UTF-8"></script>
</head>
<body>
<div class="rqj">
<form class="layui-form layui-form-pane" action="RejisterServlet" lay-filter="example">
<div class="layui-form-item">
<label class="layui-form-label">账号</label>
<div class="layui-input-inline">
<input type="text" name="uname" lay-verify="name" placeholder="请输入" autocomplete="off" class="layui-input">
</div>
</div>


<div class="layui-form-item">
<label class="layui-form-label">密码</label>
<div class="layui-input-inline">
<input type="password" name="pwd" lay-verify="pass" placeholder="请输入密码" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label">出生日期</label>
<div class="layui-input-block">
<input type="text" name="date" id="date1" autocomplete="off" class="layui-input">
</div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">地址省/市/地区</label>
<div class="layui-input-inline" data-toggle="distpicker">
<select lay-filter="a" id="a" name="pre">--省--</select>
<select lay-filter="b" id="b" name="city">--市--</select>
<select lay-filter="c" id="c" name="town">--区/县--</select>
</div>
</div>
<div class="layui-form-item" pane="">
<label class="layui-form-label">性别</label>
<div class="layui-input-block">
<input type="radio" name="sex" value="男" title="男" checked="">
<input type="radio" name="sex" value="女" title="女">
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<button class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
</div>
</div>
</form>
</div>
</body>
</html>
回帖