会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
occc
博客园
首页
新随笔
联系
订阅
管理
2022年3月4日
立即执行函数使用报错
摘要: 在代码中使用立即执行函数设置异步函数的执行顺序时,有时候会报错 xxx is not a function, 因为立即执行函数前后需要添加 ; (分号),否则会把前后的语句都识别成函数 正确应用如下: this.nopagination = true; (async () => { if( this
阅读全文
posted @ 2022-03-04 11:22 occc
阅读(123)
评论(0)
推荐(0)
编辑