idea 编写html script 部分方法提示 Unresolved 的解决方法 前几天更新了idea,js中使用getElements或alter等方法总是报Unresolved variable or type XXX警告,查了很多文章没有找到解决方法 最终瞎鼓捣好了 如下File–invalidate caches–invalidate and restart 待idea重启后即可解决问题