<link rel="stylesheet" href="css/mui.min.css">
<link rel="stylesheet" href="css/mui.picker.min.css">
<script src="js/mui.min.js"></script>
<script src="js/mui.picker.min.js"></script>
var date = new Date(data[0].scheduled_time);
var optionsJson = '{"value":"'+data[0].scheduled_time+'"}';
var options = JSON.parse(optionsJson);
var picker = new mui.DtPicker(options);
picker.show(function(rs) {
$('#scheduled_time').val(rs.value);
picker.dispose();
});
上面是代码.详情看图,年份那边默认是2015但是显示到2018了,而且滑动显示也有问题.如下