weui.datePicker({
start: 2006,
end: new Date().getFullYear(),
defaultValue: [new Date().getFullYear(), new Date().getMonth()+1, new Date().getDate()],
depth:2,
onChange: function (result) {
console.log(result);
},
onConfirm: function (result) {
console.log(result);
}
});
weui datePicker 默认日期/只显示年月
猜你喜欢
转载自blog.csdn.net/gdali/article/details/88534800
今日推荐
周排行