摘要:        
TypeScript 通过 tsc 编译成 JavaScript 时,用的是 var 全局变量,var 用多了会造成全局变量污染,为了解决这个问题,使用命名空间。 # 生成 package.json 文件 npm init -y # 生成 tsconfig.json文件 tsc -init 命名空间    阅读全文
posted @ 2021-01-11 10:26
qianbuhan
阅读(895)
评论(0)
推荐(1)
        
            
        
        
摘要:        
更改 tsconfig.json 文件中的配置项: tsconfig.json 文件是由 tsc --init 命令生成的,参考:TypeScript 配置文件 - tsconfig.json { "compilerOptions": { "module": "amd", "outFile": ".    阅读全文
posted @ 2021-01-11 10:21
qianbuhan
阅读(4182)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号