JavaScript Babel 编译 ES6 的 class extends Array 时,无法获取方法,求助

dxcqcv · 2016年11月20日 · 最后由 dxcqcv 回复于 2016年11月22日 · 7109 次阅读

Built-in classes such as Date, Array, DOM etc cannot be properly subclassed due to limitations in ES5 (for the es2015-classes plugin). You can try to use babel-plugin-transform-builtin-extend based on Object.setPrototypeOf and Reflect.construct, but it also has some limitations. https://babeljs.io/docs/usage/caveats/

需要 登录 后方可回复, 如果你还没有账号请 注册新账号