typescript - Cannot find name 'window`, 'document', Cannot find element 'Element', 'HTMLElement'

风影

2018-03-26T16:30:27Z||2018-03-26T16:30:27Z

都是因为TypeScript根本没有引入DOM的lib,tsconfig.json中的lib要包含"dom".