同 ES6 ~
https://www.runoob.com/typescript/ts-map.html
注意:要使用 es6 编译
tsc --target es6 test.ts
eg.
tsc .\test.ts --watch --strictNullChecks --target es6
同 ES6 ~
https://www.runoob.com/typescript/ts-map.html
注意:要使用 es6 编译
tsc --target es6 test.ts
eg.
tsc .\test.ts --watch --strictNullChecks --target es6