js中严格模式有什么特点?

56 阅读1分钟
  1. 全局变量必须先声明
  2. 禁止使用with
  3. 创建eval作用域
  4. 禁止this指向window
  5. 函数参数不能重名