JSLint Error: Unexpected 'this'

后端 未结 6 1522
野趣味
野趣味 2020-12-03 01:02

Having trouble understanding why JSLint is surprised by my use of this in the following code:

6条回答
  •  无人及你
    2020-12-03 01:29

    Your code might be perfectly correct (it might also be problematic, depending on how you call testConstr).

    My suggestion is: tell JSLint to shut up

    enter image description here

    Or don't use JSLint at all.

提交回复
热议问题