JavaScript MVC 框架,Mithril.js 0.2.1 发布

mdfe 9年前

Mithril.js 是一个客户端的 JavaScript MVC 框架。可将应用分成数据层、UI层和控制层。Mithril 压缩后只有 3kb 左右。API 提供一个模板引擎,带 DOM diff 实现,支持路由和组合。

JavaScript MVC 框架,Mithril 0.2.1 发布

Mithril 0.2.1 发布,此版本更新内容:

新特性:

  • large refactor to take better advantage of Chrome js optimizations and improve source code readability (thanks to @isiahmeadows)

  • added catch and finally to promises

  • improvements and fixes in the documentation and wiki

  • m(component, ...args) can now be used as a shorthand for m.component(component, ...args)

Bug 修复:

  • errors thrown from the exception monitor no longer freeze redrawing

  • fix edge case with falsy keys

  • fix controller prototype inheritance in component controllers

  • fix return value of parseQueryString if input is empty string

  • fix component unloading #614 #866

下载:https://github.com/lhorie/mithril.js/archive/v0.2.1.zip 

来自:http://www.oschina.net/news/69155/mithril-0-2-1