[英]In eclipse, I have an error in a javascript file written a class with private fields
Like an image bellow, I have an error in a javascript file wrriten a class with private fields in eclipse.如下图所示,我在 javascript 文件中出现错误,该文件编写为 class,其中私有字段位于 eclipse 中。 Is's no problem in the "class" words but there is a problem in the "#" words at private fields.
“class”字没有问题,但私有字段的“#”字有问题。 I can run this project with no error.
我可以毫无错误地运行这个项目。 So it is the correct code.
所以这是正确的代码。 Can I solve the problem?
我可以解决问题吗?
Yes, it is a correct code, #variable
is not yet understood by eclipse, it is compiling for old version of ECMA Script是的,这是一个正确的代码,#variable 尚未被
#variable
理解,它正在为旧版本的 ECMA 脚本编译
The warning appears due to asian characters you type inside the code, try to remove the asian language from the code and use plain english, then Eclipse will take it.由于您在代码中键入的亚洲字符而出现警告,尝试从代码中删除亚洲语言并使用简单的英语,然后 Eclipse 将接受它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.