Mixen合并 JavaScript 类
Mixen 可以让你随时对类进行合并,使用它可以构建更小、更易于理解和更方便测试的组件,以及更方便的和他人分享代码。
class MyModel extends Mixen(Throttle, APIBinding, Validate, Backbone.Model)
# Inheritance Chain:
#
# MyModel -> Throttle -> APIBinding -> Validate -> Backbone.Model
class MyOtherModel extends Mixen(APIBinding, Backbone.Model)
# Inheritance Chain:
#
# MyOtherModel -> APIBinding -> Backbone.Model
评论