weui datePicker 遇到的问题,请帮忙指教

问与答 poker 发表于 1 周前

$('#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)

作为新手的我很懵逼,看网上都是这么用的啊

暂无回复,说出你的观点吧
登录后即可参与回复