在 JavaScript 脚本的开头添加 "use strict"; 或 'use strict';
"use strict";
'use strict'
参考:JS严格模式(use strict)详解