JSLint reports “Unexpected dangling” character in an underscore prefixed variable name

后端 未结 4 1647
一整个雨季
一整个雨季 2020-12-02 14:56

I know that some people consider the presence of a leading underscore to imply that a variable is \"private,\" that such privacy is a fiction, and assume this is why JSLint

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-02 15:46

    The best way to handle this is just to enable the "Tolerate dangling _ in identifiers" (nomen) option. See http://www.jslint.com/lint.html for details...

提交回复
热议问题