JS类继承模型 Klass
open23e
14年前
<p>An expressive, cross platform JavaScript Class provider with a classical interface to prototypal inheritance.</p> <p>示例代码:</p> <pre class="brush:javascript; toolbar: true; auto-links: false;">var Person = klass(function (name) { this.name = name }) .statics({ head: ':)', feet: '_|_' }) .methods({ walk: function () {} })</pre> <p></p> <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1326036152484" target="_blank">http://www.open-open.com/lib/view/home/1326036152484</a></p>