来看看EcmaScript6新特性的类继承和模块化
ES6新增了很多非常实用的功能,我对其中的类和模块化非常感兴趣, 1.类新增extends继承,super和prototype: class Point extends Base { constructor(x,y) { super(); this[px] = x, this1 = y; this.r = function() { return Math.sqrt(x*x + y*y); } }...
View Article
More Pages to Explore .....