es6 class继承用es5实现

es5实现普通的继承 // 类的调用检测 检测实例是否是new出来的 function _classCallCheck(instance, constructor) { if (!(instance instanceof constructor)) { throw new Error('Class constructor Child cannot be invoked without new')
相关文章
相关标签/搜索