标签:pre doctype NPU 一周 总结 put stat 当前日期 input
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <link rel="stylesheet" href="../static/css/bootstrap.min.css"> <link rel="stylesheet" href="../static/css/bootstrap-datetimepicker.min.css"> </head> <body> <form action="" class="form-horizontal" role="form"> <div class="input-group date form_datetime col-md-5" data-link-field="dtp_input1"> <input class="form-control" size="16" type="text" value="" readonly=""> <span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span> <span class="input-group-addon"><span class="glyphicon glyphicon-th"></span></span> </div> </form> <script src="../static/js/jquery-1.8.3.min.js"></script> <script src="../static/js/bootstrap.min.js"></script> <script src="../static/plugins/bootstrap-datetimepicker.min.js"></script> <script src="../static/plugins/bootstrap-datetimepicker.zh-CN.js"></script> <script> $(‘.form_datetime‘).datetimepicker({ language: ‘zh-CN‘, format: ‘yyyy-m-dd hh:ii:ss‘, weekStart: 0,//一周从哪一天开始 todayBtn: 1,//今天按钮 autoclose: true,//当选择一个日期之后是否立即关闭此日期时间选择器。 todayHighlight: 1,//如果为true, 高亮当前日期。 }); </script> </body> </html>
标签:pre doctype NPU 一周 总结 put stat 当前日期 input
原文地址:https://www.cnblogs.com/liuer-mihou/p/11451724.html