bootstrap 时间日期日历控件

bootstrap 时间日期日历控件

bootstrap实列qingyu2021-05-19 11:32:58180A+A-
<!DOCTYPE html>
<html>
 
	<head>
		<meta charset="UTF-8">
		<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
		<link href="https://cdn.bootcss.com/bootstrap-datetimepicker/4.17.47/css/bootstrap-datetimepicker.min.css" rel="stylesheet">
 
		<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
		<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
		<script src="https://cdn.bootcss.com/moment.js/2.22.0/moment-with-locales.js"></script>
		<script src="https://cdn.bootcss.com/bootstrap-datetimepicker/4.17.47/js/bootstrap-datetimepicker.min.js"></script>
 
		<title></title>
		<style type="text/css">

		</style>
	</head>
 
	<body>
		<div class="form-group ">
			<label for="name">发布时间</label>
			
			<div class='input-group date' style="width: 14em;" id='datetimepicker1'>
				<input type='text' class="timeInput form-control" />
				<span class="input-group-addon">
                <span class="glyphicon glyphicon-calendar">选择</span>
				</span>
			</div>
		</div>
		<script>
			
			
			$('#datetimepicker1').datetimepicker({
				format: 'YYYY-MM-DD',
				locale: moment.locale('zh-cn'),
				
			});
			
		</script>
	</body>
</html>

1.png

点击这里复制本文地址 如需修改代码或者定制开发,请联系站长

支持Ctrl+Enter提交
qrcode

大黄鸡源码编程网 © All Rights Reserved.  
网站备案号:闽ICP备18012015号-4
Powered by Z-BlogPHP
联系我们| 关于我们| 广告联系| 网站管理