简体   繁体   English

JsHint错误与分析

[英]JsHint error with analytics

I am getting a bunch of errors on JsHint regarding my Google Analytics snippet. 关于我的Google Analytics代码段,我在JsHint上遇到了一堆错误。

How can I isolate this code so that JsHint ignores it? 如何隔离此代码以便JsHint忽略它? I guess this should be ignored by JsHint. 我想这应该被JsHint忽略。

From the documentation : 文档

// Code here will be linted with JSHint.
/* jshint ignore:start */
// Code here will be linted with ignored by JSHint.
/* jshint ignore:end */

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM