bootstrap日期和时间选择器怎么用

bootstrap日期和时间选择器怎么用


茅侃侃
浏览 838回答 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

相关分类

Bootstrap