标签:asc const new ons blog rip color span prot
class Car { getName(){ } } let car = new Car(); console.log(‘car.constructor‘,car.constructor===Car); // true console.log(‘Car.prototype‘,Car.prototype); // 对象 console.log(‘Car.prototype.getName‘,Car.prototype.getName); // getName()函数
标签:asc const new ons blog rip color span prot
原文地址:http://www.cnblogs.com/sea-breeze/p/6964154.html