为什么F()单独调用和给变量赋值时的返回值与PrimaryStudent.prototype=new F()时的返回值不一样?
new F();//F {} var b=new F();//undefined b;//F {} PrimaryStudent.prototype=new F();//Student {} PrimaryStudent.prototype;//Student {}
Sign in to make a reply
hahaxtu
为什么F()单独调用和给变量赋值时的返回值与PrimaryStudent.prototype=new F()时的返回值不一样?