Function.prototype.a=1;Object.prototype.b=2;functionA(){}vara=newA();console.log(a.a,a.b);//undefined,2console.log(A.a,A.b);//1,2
有沒有童鞋遇到過同樣的問題:這個輸出結果為什么是這樣?求解答!
大話西游666
2019-09-05 09:06:40