Bla*_*e27 3 intellisense jquery netbeans-7
可能重复:
NetBeans jQuery插件代码完成
我下载了最新的Netbeans,放置了以下代码,但智能感知不起作用.
<script type="text/javascript" src="js/jQuery.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("a").click(function() {
alert("Hello world!");
});
});
</script>
Run Code Online (Sandbox Code Playgroud)
我刚刚找到这个链接,应该帮助你.
跟着这些步骤
在项目文件夹中,创建名为js的文件夹,并将其添加到项目中.
找到您下载到计算机上的jQuery库.将文件复制到此js文件夹
更进一步,它表示触发intellisense包括库本身
<script type="text/javascript" src="js/jquery-1.4.2.js"></script>
<!-- ^ Be sure to include the version number -->
<script type="text/javascript">
// Try it inside here and it should work
</script>
Run Code Online (Sandbox Code Playgroud)

| 归档时间: |
|
| 查看次数: |
6517 次 |
| 最近记录: |