add files:ES6相关:字符串、数值、数组

This commit is contained in:
qianguyihao
2018-04-02 11:50:51 +08:00
parent 150b066daa
commit fceb583838
31 changed files with 445 additions and 238 deletions

View File

@@ -0,0 +1,39 @@
## Class和普通构造函数有何区别
> 我们经常会用ES6中的Class来代替JS中的构造函数做开发。
- Class 在语法上更加贴合面向对象的写法
- Class 实现继承更加易读、易理解
- 更易于写 java 等后端语言的使用
- 本质还是语法糖,使用 prototype