本文介绍了Netbeans 不支持 JavaScript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 netbeans 6.9,我试图在它上面编辑 javascript.但是,我的 .js 文件中不断出现代码错误.我什至无法创建新的 javascript 模板.我尝试升级到 netbeans 7.01,但这并没有改变.我也启用了 JAVA 插件,但没有帮助.

I had netbeans 6.9, and i was trying to edit javascript on it. However, I keep getting code errors in my .js files. I can't even create a new javascript template. I tried upgrading to netbeans 7.01, but this doesn't change. I also enabled the JAVA plugin, but it doesn't help.

有人知道这是怎么回事吗?

Anyone know what's going on?

推荐答案

我怀疑您以某种方式将 NetBeans 配置为将 *.js 文件作为 Java 处理,这是一种完全不同的语言.

I suspect you've somehow configured NetBeans to handle *.js files as Java, which is an entirely different language.

转到工具->选项->杂项->文件并在文件扩展名"组合中找到js.关联文件类型 (MIME)"输入框应显示 text/javascript.

Go to Tools-> Options-> Miscellaneous-> Files and find js in the "File Extension" combo. The "Associated File Type (MIME)" input box should say text/javascript.

这篇关于Netbeans 不支持 JavaScript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 05:48