<div class="ys-datetimepicker"> <input class="form-control" size="16" type="text" value="2015-10-01" readonly=""/> </div> <script> $(".ys-datetimepicker input").datetimepicker({ language: "zh-CN", format:"yyyy-mm-dd", todayBtn:true, clearBtn:true,// 自定義屬性,true 顯示 清空按鈕 false 隱藏 默認:true startView:2, minView:2, weekStart: 1, todayHighlight: 1, autoclose: 1, forceParse: 0 }); </script>
z這三個文件需要更新spa