- 博客(1)
- 收藏
- 关注
原创 ES6中Class的一些个人记录
1.Class的内部所有定义的方法,都是不可枚举的。 const funName = 'fun'; //类Demo class Demo{ constructor(arg) { } say(){ } speak(){ } [funName](){ } } console.log( Object.keys(Demo.prototype) ) //[...
2018-10-25 22:17:24 231 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人