摘要:
一、类的装饰器 ①package.json中添加dev命令 "dev": "ts-node ./src/index.ts" ②tsconfig.json中把实验类型的支持打开 "experimentalDecorators": true, "emitDecoratorMetadata": true, 阅读全文
posted @ 2021-03-12 16:15
柳洁琼Elena
阅读(160)
评论(0)
推荐(0)
摘要:
一、TypeScript中的配置文件 ①生成tsconfig.json文件 npm install typescript -g tsc init ②tsconfig.json文件的作用是typescript对应的编译配置文件 ③运行tsc demo.ts会编译成demo.js文件 ④只有单独输入ts 阅读全文
posted @ 2021-03-12 13:41
柳洁琼Elena
阅读(208)
评论(0)
推荐(0)

浙公网安备 33010602011771号