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 A(){
A.prototype.id=A.prototype.id+1
this.id=A.prototype.id
}
A.prototype.id=0
var a1 = new A(); var a2 = new A();
The text was updated successfully, but these errors were encountered:
zhangyanan0525
changed the title
有个function A(){} var a1 = new A();var a2 = new A(); a1.id = 1;a2.id = 2;实现A
function A(){}; var a1 = new A(); var a2 = new A(); a1.id = 1; a2.id = 2; 实现A
Jul 5, 2018
zhangyanan0525
changed the title
function A(){}; var a1 = new A(); var a2 = new A(); a1.id = 1; a2.id = 2; 实现A
function A(){}; var a1 = new A(); var a2 = new A(); a1.id === 1; a2.id === 2; 实现A
Jul 5, 2018
The text was updated successfully, but these errors were encountered: