另外,函数Student恰好有个属性prototype指向它的原型,但是xiaoming、xiaohong这些对象可没有prototype这个属性,不过可以用proto这个非标准用法来查看。
函数Student恰好有个属性prototype指向它的原型这句话不理解额。
函数Student的属性prototype指向的不是xiaoming,xiaohong的原型对象么?函数Student的原型应该是Function.prototye呀
指向的是xiaoming,xiaohong的原型对象
Sign in to make a reply
jaychang87
另外,函数Student恰好有个属性prototype指向它的原型,但是xiaoming、xiaohong这些对象可没有prototype这个属性,不过可以用proto这个非标准用法来查看。
函数Student恰好有个属性prototype指向它的原型这句话不理解额。
函数Student的属性prototype指向的不是xiaoming,xiaohong的原型对象么?函数Student的原型应该是Function.prototye呀