webstorm只能提示,static source路径及js方法
 发布于 11 年前  作者 jinceon  15493 次预览  最后一次回复是 10 年前  来自 问答 

将 public 目录下的css等文件,作为静态志愿

引用时,路径就写了 <link rel=‘stylesheet’ href=’/stylesheets/bootstrap.min.css’ />

这样写,webstorm会提示 cannot resolve file path 写class时就不能提示 bootstrap.min.css里的类了,是我哪里设置错了吗?

还是有其他解决方法?

另外,很奇怪地,express.Router get方法有提示,Post方法没提示. 但是get方法提示的也是有Multiple Implementation,感觉好奇怪 QQ20150109-1.png

3 回复
DevinXian

js是弱类型,有些提示不周的地方很正常;表示无视之,run…done

jinceon

mark as resource root即可。

上图是我已经mark as resource root后的截图。