摘要:
一、js继承问题//有关于原型继承的代码如下:function Person(name) { this.name = name;}Person.prototype = { getName : function() { return this.name; }}function Student(name, id) { Person.call(this, name) this.id = id;}//接下来的一行,我们提供了有三种写法://第一种:Student.prototype = Person.prototype;//第二种:Student.prototype = new Perso... 阅读全文