摘要: ts函数中,直接使用this会报错: "this" 隐式具有类型 "any",因为它没有类型注释。 应该以参数形式声明this,以防抖函数为例 function debounce(fn: Function, time: number) { let timer: number return funct 阅读全文
posted @ 2023-08-11 17:08 蓓蕾心晴 阅读(435) 评论(0) 推荐(0) 编辑