Why is “use strict” still a string literal?
本问题已经有最佳答案,请猛点这里访问。
为什么我们还要使用带引号的字符串文字来打开JS中的
所有浏览器和JS运行时引擎之间的兼容性。
例如,http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/
No new syntax is introduced in order to enable strict mode. This is huge. This means that you can turn strict mode on in your scripts – today – and it’ll have, at worst, no side effect in old browsers.