且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Eclipse中针对JavaScript代码的“缺少分号”警告

更新时间:2023-01-09 10:10:30

JavaScript中只提出了 const 。使用

There is only a proposed const in JavaScript. Use

var C = 'b';

实际上,显然有一个const,但并不是所有浏览器都支持它并且不会很好出于这个原因使用。

Actually, there is a const apparently, but it is not supported by all browsers and would not be good to use for that reason.

Eclipse给你警告的原因是它无法识别 const 这是Eclipse中的已知错误。

The reason Eclipse is giving you the warning is that it does not recognize const which is a known bug in Eclipse.

您可以阅读如何忽略 使用JavaScript const会在关联... 中显示缺少分号。

You can read how to ignore the errors in Use of JavaScript const gives "missing semicolon" in associative....