j-time-picker
v0.1.3
Published
时间选择器
Downloads
6
Readme
j-time-picker
DEMO
Installing
npm i j-time-picker --save
Running the demo
npm install
npm run dev
Enjoy it
<div id="time"></div>
<script type="text/javascript">
var timePicker = new window.jTimePicker('#time', {
defaultValue: new Date('2018-10-01'),
defaultValues: [new Date('2018-10-01'), new Date()],
onChange: function(v) {
console.log('onChange', timePicker)
},
isRange: true //是否能选择时间区间
});
</script>
Updata
0.0.8 fix:bug
0.0.9 fix:bug
0.0.12 link github
0.0.13 add:输入具体年月
0.0.14 add:demo
0.1.0 add:时间区间的模式下,可快速选择最近或接下来的时间区域
0.1.2 fix:safari 报错问题
0.1.3 fix:Date UTC add parse