DatePickerのプラグインを使用して基本的な操作は、選択した日付の8-5を実装します

datapickerパラメータ説明:http://www.cnblogs.com/xmphoenix/archive/2011/07/14/2106042.html


<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>使用datepicker插件实现日期选择的基本操作</title>
<script type="text/javascript" src="lib/jquery-2.1.1.js"></script>
<script type="text/javascript" src="lib/jquery-ui.min.js"></script>
<style type="text/css">
	body{font-size:13px}
	.txt{border:#666 1px solid;padding:2px;width:100px;margin-right:3px;}
</style>
<script type="text/javascript">
	$(function(){
		$("#txtDate").datepicker({changeMonth:true,changeYear:true,showWeek:true,showButtonPanel:true,closeText:'Close'});
	})
</script>
</head>
<body>

	<div>
		输入日期:<input name="txtDate" id="txtDate" class="txt"/>
	</div>
	
</body>
</html>


ます。https://my.oschina.net/u/2552902/blog/543919で再現

おすすめ

転載: blog.csdn.net/weixin_33796177/article/details/92327004