gpt4 book ai didi

jquery - 如何在 netbeans 7.1 上启用 jQuery 智能感知?

转载 作者:行者123 更新时间:2023-12-01 01:03:06 25 4
gpt4 key购买 nike

Possible Duplicate:
NetBeans jQuery plugin code completion

我下载了最新的Netbeans,放置了以下代码,但智能感知不起作用。

<script type="text/javascript" src="js/jQuery.js"></script>

<script type="text/javascript">
$(document).ready(function() {
$("a").click(function() {
alert("Hello world!");
});
});
</script>

最佳答案

我刚刚找到this链接,应该可以帮助您。

按照以下步骤操作

  • In your project folder, create a folder named js, and add it to your project.

  • Locate the jQuery library that you downloaded onto your computer. Copy the file to this js folder

此外,它还表示要触发智能感知,包括库本身

<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>

The display of intellisense

关于jquery - 如何在 netbeans 7.1 上启用 jQuery 智能感知?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9770322/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com