Fork me on GitHub

JSLint Error Explanations

JSLint will hurt your feelings. It's time to make them better!


Unexpected assignment expression

什么时候会产生这个错误?

当一个包含不明确地赋值操作符存在于,应当为比较操作符表达式的while,for或者if语句中,JSLint(自2013年七月)会抛出这个错误。这个错误是原来"Expected a conditional expression and instead saw an assignment"JSLint与JSHint消息的新版:


comments powered by Disqus