TypeScript报错解决--Property 'target' does not exist on type 'typeof Dep'.ts(2339)
问题描述demo代码: let uid = 0; Class Dep{ constructor(){ this.id = uid++; // vscode编译器报错 } }使用vscode编写typeScript文件,使this.id赋值时会提示报错,报错信息如下:error : Property 'id' does not exist on type 'Dep'...
原创
2019-11-06 14:38:35 ·
13787 阅读 ·
0 评论