typescript实践 夜游 2018-11-27 1.在typescript中使用Promise?需要先在tsconfig.json文件的”compilerOptions”字段里面增加下面这个值:1"lib": ["es2015"]