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

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

问题描述

我正在使用适用于PHP的NetBeans .

当我编辑.js文件时,它会为我提供 javascript 代码完成.

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

如何获取我的jQuery代码补全功能?

推荐答案

首先转到工具"->选项"->其他",然后单击"Javascript"标签, 确保正确配置了目标浏览器,并根据目标浏览器的最低版本更改了代码完成,以确保支持该功能.

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.

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

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天全站免登陆