gpt4 book ai didi

javascript - 这个注释是什么意思/* jshint +W040 */

转载 作者:行者123 更新时间:2023-11-28 19:25:17 26 4
gpt4 key购买 nike

我正在浏览 Angular 源代码并发现以下部分:

/* 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 */

http://jshint.com/docs/

所以这只是为了确保文件的其余部分不会忽略它。

关于javascript - 这个注释是什么意思/* jshint +W040 */,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28000169/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com