严格模式 use strict 必须使用var声明变量 自定义函数this指向window 'use strict' funcion Person(name){ this.name = name; } Person("Tom"); //error new Person("Tom"); //right 来源:https://www.cnblogs.com/KevinTseng/p/11999972.html 标签 函数声明 es5 js tom