💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
### 日期选择 **位置:** 全局 **参数:** calendar-icon **调用:** <link rel="stylesheet" href="__PUBLIC__/plug/bootstrap-datepicker/css/bootstrap-datepicker.css"/> <script src="__PUBLIC__/plug/bootstrap-datepicker/js/bootstrap-datepicker.js"></script> **完整代码:** ~~~ <input class="form-control calendar-icon" placeholder="日期" readonly> <script> $(function(){ // 语言转到中文 $.fn.datetimepicker.dates['zh'] = { days: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六","星期日"], daysShort: ["日", "一", "二", "三", "四", "五", "六","日"], daysMin: ["日", "一", "二", "三", "四", "五", "六","日"], months: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月","十二月"], monthsShort: ["一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", "十二"], meridiem: ["上午", "下午"], //suffix: ["st", "nd", "rd", "th"], today: "今天" }; // 调用插件 $('.calendar-icon').datetimepicker({ language: 'zh', format:'yyyy-mm-dd', minView: "month", autoclose:true }); }); </script> ~~~ **截图:** ![](https://box.kancloud.cn/c6f1afa0b69269c93fa30ff32cad2c1f_272x338.png)