JSLint error: Move all 'var' declarations to the top of the function

后端 未结 7 1078
栀梦
栀梦 2020-11-30 05:16

JSLint site updated, and I cannot check JS scripts anymore. For me, this warning is not critical, and I don\'t want to go through thousands of lines to fix this, I want to f

7条回答
  •  隐瞒了意图╮
    2020-11-30 05:58

    Note that move all vars to the top is different from "allow one var statement per function". The requirement to move all variables to the top is new and doesn't seem to have a switch. More at http://groups.google.com/group/jsmentors/browse_thread/thread/5e90c25230f8e22/70e1a95a20fb829e

提交回复
热议问题