bootstrap--input框选择日期
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> <link rel="stylesheet" href="css/bootstrap-datetimepicker.min.css"/> <link rel="stylesheet" href="css/bootstrap.min.css"/> </head> <body> <input type="text" class="datetimepicker"> </body> <script src="js/jquery-1.11.3.min.js"></script> <script src="js/bootstrap-datetimepicker.min.js"></script> <script type="text/javascript"> $('.datetimepicker').datetimepicker({ minView: "month", format: "yyyy-mm-dd", language: 'zh-CN', autoclose:true }); </script> </html>