文章 评论 浏览 29
因为this生成顺序不同,所以需要在constructor中,需要使用super()
const sevenTimes = num => new Array(7).fill(num).reduce((p,v)=> p+v) sevenTimes(10) // 70
you used + , which is not allowed.
文章 0 评论 0
接受
因为this生成顺序不同,所以需要在constructor中,需要使用super()
第 7 题:ES5/ES6 的继承除了写法以外还有什么区别?