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);
}
});