红联Linux门户
Linux帮助

Mithril 0.1.22发布,JavaScript的MVC框架

发布时间:2014-09-28 21:28:22来源:红联作者:empast
Mithril 0.1.22 发布,此版本是个维护版本,现已提供下载,更新内容如下:

新特性

docs now have anchor links for easier navigation

there is more documentation for things that weren't that clear

json-p support added

m() now supports splat for children (e.g. m("div", m("a"), m("b"), m("i")) for nicer Coffeescript syntax

by popular demand, m.module now returns a controller instance

Bug 修复:

gracefully degrade on IE exceptions when setting invalid values

fixes for Typescript definition file

fixed bug in keys algorithm when mixing keyed and unkeyed elements #246

added promise exception monitor and reverted promise exception handling semantics to v0.1.19 semantics (see docs)

fixed redraw scheduling bug in old version of IE

fixed incorrect diff when document is root, and html element is omitted

fixed querystring clobbering in links w/ config:m.route #261

fixed rare bug that made events get dropped #214

don't send Content-Type header if there's no request data #280

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

软件详情:https://github.com/lhorie/mithril.js/

下载地址:hthttps://github.com/lhorie/mithril.js/releases/tag/v0.1.22

来自:开源中国社区
文章评论

共有 0 条评论