编译错误:Cannot find name 'window'
解决办法:
tsconfig.json 的 lib加dom,比如:
"compilerOptions": {
"lib": ["es5", "es6", "dom"],
评论