如何在 NetBeans 中完成 jQuery 代码? [英] How can I get jQuery code completion in NetBeans?

查看:30
本文介绍了如何在 NetBeans 中完成 jQuery 代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用

解决方案

首先进入 Tools -> Options -> Miscellaneous 并点击 Javascript 选项卡,确保目标浏览器配置正确,目标浏览器的最小版本更改代码完成以确保支持该功能.

您还需要将 jquery js 文件添加到您的项目中,以便 netbeans 能够解析它并正确添加代码完成.

I'm using NetBeans for PHP.

When I edit a .js file, it gives me javascript code completion.

How can I get it to also give me jQuery code completion?

解决方案

First go to Tools -> Options -> Miscellaneous and click on the Javascript tab, make sure the targeted browsers are configured properly, code completion changes by the minimal version of the targeted browsers to make sure that the functionality is supported.

You also need to add the jquery js file to your project so netbeans would be able to parse it and to properly add code completion.

这篇关于如何在 NetBeans 中完成 jQuery 代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆