raozhanping
Results
1
comments of
raozhanping
@alanchanzm > 1. `class` 的所有方法(包括静态方法和实例方法)都没有原型对象 prototype,所以也没有`[[construct]]`,不能使用 `new` 来调用。 > > ```js > function Bar() { > this.bar = 42; > } > Bar.prototype.print = function() { > console.log(this.bar); > };...