这个注释是什么意思 /* jshint +W040 */
what does this comment mean /* jshint +W040 */
我正在查看 Angular's
源代码并找到以下部分:
/* jshint -W040 *//* some comment here
injector.invoke(blockFns[i] || angular.noop, this);
/* jshint +W040 */
我知道我可以使用像 jshint -W000
这样的符号来为 jshint 指定不应检查以下行。但是加号(jshint +W000
)的表示法是什么?
重新启用之前禁用的警告。
来自文档:
To re-enable a warning that has been disabled with the above snippet you can use:
/* jshint +W034 */
所以这只是为了确保文件的其余部分不会忽略它。
我正在查看 Angular's
源代码并找到以下部分:
/* jshint -W040 *//* some comment here
injector.invoke(blockFns[i] || angular.noop, this);
/* jshint +W040 */
我知道我可以使用像 jshint -W000
这样的符号来为 jshint 指定不应检查以下行。但是加号(jshint +W000
)的表示法是什么?
重新启用之前禁用的警告。
来自文档:
To re-enable a warning that has been disabled with the above snippet you can use:
/* jshint +W034 */
所以这只是为了确保文件的其余部分不会忽略它。