error TS2339: Property ‘style’ does not exist on type ‘Element’.
ts 文件操作 dom 元素打包时报错
error TS2339: Property 'style' does not exist on type 'Element'.
但是并不影响功能
看度娘上的解决办法都不好使(可能是个人原因 (;´д`)ゞ)
问了公司大佬后
const nav: any = document.querySelect('....');
就完事了 ヾ (✿゚▽゚) ノ