2022年3月4日
摘要: 在代码中使用立即执行函数设置异步函数的执行顺序时,有时候会报错 xxx is not a function, 因为立即执行函数前后需要添加 ; (分号),否则会把前后的语句都识别成函数 正确应用如下: this.nopagination = true; (async () => { if( this 阅读全文
posted @ 2022-03-04 11:22 occc 阅读(123) 评论(0) 推荐(0) 编辑