wx_calendar icon indicating copy to clipboard operation
wx_calendar copied to clipboard

1.x 调用 calendar 方法提示 undefined

Open treadpit opened this issue 5 years ago • 0 comments

1.x 版本:

出现此问题请查看是否调用方法的时机是否有误,日历渲染完成才会绑定方法到页面实例上。

方法默认挂在当前页面实例对象上,即如果使用 this.calendar 调用方法,请确保 this 指向当前页面实例。

this.calendar 上的方法需要在 afterCalendarRender 后,在页面 onLoad 或 初次触发 onShow 的时候,日历可能还未渲染完成,所以此时调用日历方法会提示为 undefined

treadpit avatar Nov 17 '19 13:11 treadpit