【发布时间】:2014-01-19 23:28:44
【问题描述】:
Google Chrome 支持debugger command 作为在代码中设置断点的工具。如何在JSLint 中隐藏以下代码的警告:
/*globals $, console, */
/*jslint browser:true, white: true */
function test() {
"use strict";
debugger; // JSLint reports the "Unexpected 'debugger'" error
}
【问题讨论】:
标签: javascript google-chrome jslint