ES6学习 — Class
xiaoqi 发布于 2017-06-18
传统的JavaScript面向对象编程,是通过构造函数原型来实现的。例子: function Num(n, m){ this.n = n; this.m = m; } Num.prototype.su […]
xiaoqi 发布于 2017-06-18
传统的JavaScript面向对象编程,是通过构造函数原型来实现的。例子: function Num(n, m){ this.n = n; this.m = m; } Num.prototype.su […]