Quantcast
Channel: i,unbug »模块化
Browsing latest articles
Browse All 2 View Live

来看看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



EcmaScript6模块化已经给出了具体的实例

ECMA的下一版Harmony,已经给出了模块化的具体实例,并且有了模块加载的具体API. 期望草案早点成为标准。

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images