Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们在我的工作中进行了辩论,有人说在使用 es6 和 nodejs 时,当然没有 babel,你应该总是添加 'use strict' 因为某些 es6 方法可能不起作用。我找不到支持这一点的文档,是真的吗?
根据规范:
模块代码始终是严格模式代码。
http://www.ecma-international.org/ecma-262/6.0/#sec-strict-mode-code