判断题
错误
class Bar { doStuff() { console.log(‘stuff’); }}var b =...
判断题class Bar { doStuff() { console.log(‘stuff’); }}var b = new Bar();b.doStuff() // 返回报错信息。
使用的时候直接对类使用new命令。
判断题使用的时候直接对类使用new命令。
class Point { // ...}Point === Point.prototype.construc...
判断题class Point { // ...}Point === Point.prototype.constructor返回true。