Uncaught (in promise) TypeError: Cannot read property ‘songs‘ of undefined
我在监控了一个搜索框this.value值, 当value值清空后,搜索界面会销毁,另一个界面出现。我设置防抖的延时器之后, 我快速把搜索框删除完就会报警:
Uncaught (in promise) TypeError: Cannot read property 'songs' of undefined
if (this.timer) clearTimeout(this.timer);
this.timer = setTimeout(async () => {
...
原创
2021-09-17 19:19:12 ·
275 阅读 ·
0 评论