Bootstrap中datetimepicker使用
阿新 • • 發佈:2019-01-07
一款簡潔美觀、功能強大的日期選擇控制元件。
示例原始碼:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" type="text/css" href="bootstrap.css">
<link rel="stylesheet" type="text/css" href="bootstrap-datetimepicker.css" >
<script src="jquery-2.1.4.min.js"></script>
<script src="bootstrap.js"></script>
<script src="bootstrap-datetimepicker.js"></script>
<script src="bootstrap-datetimepicker.zh-CN.js"></script>
</head>
<body>
<input type ="text">
<script type="text/javascript">
$("input").datetimepicker({
language:"zh-CN",
format:"yyyy-mm-dd",
minView:"2"
});
</script>
</body>
</html>