JavaScript MVC 框架,Mithril.js 0.2.1 發布

mdfe 8年前發布 | 6K 次閱讀 Mithril

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

 本文由用戶 mdfe 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!