Fiber.js是来自Likedi的一个轻量级的JavaScript对象继承模型。
示例代码:
// Aimal base classvar Aimal = Fiber.exted(fuctio() { retur { // The `iit` method serves as the costructor. iit: fuctio() { // Private fuctio private1(){} fuctio private2(){} // Privileged this.privileged1 = fuctio(){} this.privileged2 = fuctio(){} }, // Public method1: fuctio(){} }});var aimal = ew Aimal(); // Create a ew Aimal istace
评论