求教bootstrap-calendar要怎么用

求教bootstrap-calendar要怎么用


SMILET
浏览 494回答 1
1回答

回首忆惘然

Bootstrap-DateTimePicker是基于Bootstrap3的日期-时间选择器控件,允许自定义时间选择器图标,设置图标是否显示,自定义日期显示格式,禁用日期选择器,设置是否禁用日期选择器、时间选择器、分钟选择器、秒选择器,设置日期的数据范围。  $.fn.datetimepicker.defaults = {pickDate: true, //en/disables the date pickerpickTime: true, //en/disables the time pickeruseMinutes: true, //en/disables the minutes pickeruseSeconds: true, //en/disables the seconds pickeruseCurrent: true, //when true, picker will set the value to the current date/timeminuteStepping:1, //set the minute steppingminDate:`1/1/1900`, //set a minimum datemaxDate: , //set a maximum date (defaults to today +100 years)showToday: true, //shows the today indicatorlanguage:’en’, //sets language localedefaultDate:”", //sets a default date, accepts js dates, strings and moment objectsdisabledDates:[], //an array of dates that cannot be selectedenabledDates:[], //an array of dates that can be selectedicons = {time: ‘glyphicon glyphicon-time’,date: ‘glyphicon glyphicon-calendar’,up: ‘glyphicon glyphicon-chevron-up’,down: ‘glyphicon glyphicon-chevron-down’}useStrict: false, //use “strict” when validating datessideBySide: false, //show the date and time picker side by sidedaysOfWeekDisabled:[] //for example use daysOfWeekDisabled: [0,6] to disable weekends};
打开App,查看更多内容
随时随地看视频慕课网APP