eclipse中js中ctrl+鼠标点击方法出现 the resource is not on the include path of a javaScript project

我的情况是这样解决的:

右键项目-->选择Configure-->最后选Convert to JavaScript Project

然后就可以了