原型对象的this指向问题
构造函数中的this 指向我们实例对象。原型对象里面放的是方法, 这个方法里面的this 指向的是这个方法的调用者, 也就是这个实例对象。例如:var that;function Star(uname, age){ this.uname = uname; this.age = age;}Star.prototype.sing = function (){ console.log('我会唱歌'); that = this;};var ldh = new S