You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function Fn() {
var num = 500;
this.x = 100;
}
Fn.prototype .getX = function () {
console.log(this.x);
};
Fn.aaa = 1000;
var f = new Fn;
f.num;//undefined
f.aaa;//undefined
var res = Fn();// Fn 中的this是window
res = undefined;
Fn.aaa;//1000
Activity