Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Sloppy mode

我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译!

ECMAScript 5 and later let scripts opt in to a new strict mode, which alters the semantics of JavaScript in several ways to improve its resiliency and which make it easier to understand what's going on when there are problems.

The normal, non-strict mode of JavaScript is sometimes referred to as sloppy mode. This isn't an official designation, but you are likely to come across it if you spend time doing serious JavaScript code.

Learn more

General knowledge

  • "Strict Mode" in chapter 7 ("JavaScript Syntax") in the book Speaking JavaScript.

文档标签和贡献者

 此页面的贡献者: klez, Sheppy
 最后编辑者: klez,