在ts文件中使用装饰器,报错:
Experimental support for decorators is a feature that is subject to change in a future release. Set the ‘experimentalDecorators’ option in your ‘tsconfig’ or ‘jsconfig’ to remove this warning.
解决:在tsconfig.json中(在项目目录下通过tsc --init命令生成)找到experimentalDecorators,取消对它的配置注释
typescript使用装饰器报错Experimental support for decorators is a feature that is subject to change in a...
最新推荐文章于 2024-04-22 23:18:29 发布