Bootstrap中datetimepicker使用

一款简洁美观、功能强大的日期选择控件。

示例源码:


<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>

演示地址

你可能感兴趣的:(Bootstrap)