Bootstrap-Datetime-picker funktioniert nicht

Möchte ich hinzufügen, dass die Bootstrap-DateTime-picker auf meiner Webseite aber es hat nicht funktioniert.in meiner Bootstrap-Ordner habe ich erstellt test.html und fügte hinzu, schrieb folgenden code:

<!DOCTYPE html>
<html lang="en">
<head>
 <title>Bootstrap Example</title>
 <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet"    href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
 <script   src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js">  </script>
<script   src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js">  </script>


</head>
<body>

<div class="container">
   <div class="row">
     <div class='col-sm-6'>
         <div class="form-group">
            <div class='input-group date' id='datetimepicker1'>
                <input type='text' class="form-control" />
                <span class="input-group-addon">
                    <span class="glyphicon glyphicon-calendar"></span>
                </span>
              </div>
           </div>
       </div>
       <script type="text/javascript">
          $(function () {
             $('#datetimepicker1').data("DateTimePicker").FUNCTION()
          });
       </script>
    </div>

</div>

  • Bootstrap hat keine built-in datetime-picker so weit ich weiß, so scheint es, dass Sie fehlt eine Bibliothek. Wo hast du diesen code?
  • Claudio Redi ,ich habe die code von diesem link hier: eonasdan.github.io/bootstrap-datetimepicker
InformationsquelleAutor developer | 2015-07-02
Schreibe einen Kommentar