jquery 代码完成和 netbeans...不工作,尽管按照手册中的方式完成
嘿, 我在几个帮助页面上读到的内容是,让 jquery 代码完成工作正常工作,就是:
- 让目标浏览器正确( 我只选择了 Firefox 3.x 或 稍后)
- 将jquery文件放入项目中(它 现在在“源文件”中可见)
- 添加“脚本类型”等行(尝试使用和不使用 / 之前的文件名)
这样做...但仍然没有代码完成。有什么想法吗?有windows 7和netbeans 7,32位系统。
搞错了? :(
Hey,
what i read on several help-pages, was, that getting jquery code completion to work, was just:
- getting targeted browsers right (the
only one i choose was firefox 3.x or
later) - putting jquery file into project (it
is now visible in "source files") - adding the "script type"etc.-line (tried filename with and without / before )
Did this... but still no code completion. Any ideas? Got windows 7 and netbeans 7, 32bit system.
Wtf is wrong? :(
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在 netbeans 中打开源文件之前,请确保源文件以“.js”扩展名结尾。我犯了一个错误,将一些代码复制到文本 (.txt) 文件中,然后在 netbeans 中打开它。代码完成或自动格式化根本不起作用。当我将其重新保存为“.js”文件时,这个问题得到了解决。
Make sure your source file ends with a ".js" extension before you open it in netbeans. I made the mistake of copying some code into a text (.txt) file and then opening it in netbeans. The code completion or auto-formatting did not work at all. This was resolved when I resaved it as a ".js" file.
我遇到了同样的问题,直到我确保文件名与文件头中的版本相同。
IE:
“jQuery JavaScript Library v1.8.0”(文件第二行)
等于“jquery-1.8.0.js”文件名。
为我工作
I've had the same problem until I made sure the file name was the same as the version in the file header.
I.e.:
"jQuery JavaScript Library v1.8.0" (second line of the file)
equals "jquery-1.8.0.js" file name.
Worked for me
将文件命名为“jquery-1.7.1.js”(最新版本),它将起作用。刚刚想通了。
Name the file "jquery-1.7.1.js" (for the newest version) and it will work. Just figured that out.