angular Ts文件操作dom元素打包报错问题
文章目录
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('....');
就完事了 ヾ(✿゚▽゚)ノ
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论