$('#showDatePicker').on('click', function () {
weui.datePicker({
start: new Date(), // 从今天开始
end: 2019,
//defaultValue: [2020, 6, 9],
onChange: function (result) {
console.log(result);
},
onConfirm: function (result) {
console.log(result);
},
id: 'showDatePicker'
});
})
start: new Date(), // 从今天开始 浏览器过分报错?
Uncaught TypeError: Cannot read property 'children' of undefined
at Object.e [as depthOf] (weui.min.js:6)
at o (weui.min.js:6)
at Object.r [as datePicker] (weui.min.js:6)
at HTMLAnchorElement.<anonymous> (datepiker.html:66)
at HTMLAnchorElement.dispatch (jquery.min.js:3)
at HTMLAnchorElement.r.handle (jquery.min.js:3)
作为新手的我很懵逼,看网上都是这么用的啊