摘要: ES6的Class可以看作是语法糖,绝大部分功能,ES5都可以做到,新的class写法只是让语法更加清晰,更像面向对象编程的语法。 //ES5写法 function Fn(a,b){ this.nam = 'nam'; this.a = a; this.b = b; } Fn.prototype.l 阅读全文
posted @ 2019-11-05 11:04 博远智——! 阅读(203) 评论(0) 推荐(0)