“alert” is not defined when running www.jshint.com

后端 未结 8 1870
长发绾君心
长发绾君心 2020-12-15 02:46

I fixed this by simply adding var alert; However, is this what I should be doing to get the pesky error message to go away? Here is the fix. Here is the fail

8条回答
  •  情话喂你
    2020-12-15 03:19

    Set "devel:true" in the Options. This enables things like Alert, console, etc.

    See documentation here: http://jshint.com/docs/options/

提交回复
热议问题