我发现所有主流浏览器都支持window.scrollY,而IE11需要document.documentElement.scrollTop。因此,我在这里试图确定当前浏览器是否为IE11: this.isIE11 = !!window.MSInputMethodContext && !!MSInputMethodContext doesnt exist on type Window和property documentMode doesnt exist o
即使使用当前最新的Vue CLI版本4.3.1,当选择TypeScript选项时,给出的样板代码也将compilerOptions 设置为esnext in tsconfig.json。rollup, to leverage tree shaking: "moduleResolution": "node"}
目前,虽然此时IE11我需要支持传统浏览器直到IE11,但是这个特定的应