1.要引入bootstrap.css ,datetime.picker.css
2.引入的JS文件如下:
<script type="text/javascript" src="jquery3.1.js"></script>
<script type="text/javascript" src="datetimepicker/js/bootstrap-datetimepicker.js"></script>
<script type="text/javascript" src="datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
<script type="text/javascript"> $("#my").datetimepicker({
language: 'zh-CN', })
</script>
這樣就可以用到中文了.