javascript的严格模式:use strict

ECMAscript 5添加的运行模式,禁止一些非标准、不安全的操作。

<script>
    "use strict";
    console.log("这是严格模式。");
  </script>

原文地址:https://www.cnblogs.com/LongMarch/p/6293509.html