发布于 2014-09-28 07:46:49 | 188 次阅读 | 评论: 0 | 来源: 网友投递

这里有新鲜出炉的Mithril.js 中文文档,程序狗速度看过来!

Mithril JavaScript 的 MVC 框架

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


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 实现,支持路由和组合。



历史版本 :
Mithril.js 1.1.6 发布,JavaScript MVC 框架
Mithril.js 1.1.4 发布,JavaScript MVC 框架
Mithril v0.2.6 和 v0.2.7 发布,JavaScript MVC 框架
Mithril v1.1.2 发布,JavaScript MVC 框架
Mithril.js 1.1.1 发布,JavaScript MVC 框架
Mithril v1.0.0 发布,JavaScript MVC 框架
Mithril 0.2.1 发布,JavaScript MVC 框架
Mithril.js 0.2.0 发布,JavaScript MVC 框架
Mithril.js 0.1.32 发布,JavaScript MVC 框架
Mithril.js 0.1.30 发布,JavaScript MVC 框架
Mithril.js 0.1.29 发布,JavaScript MVC 框架
Mithril.js 0.1.28 发布,JavaScript MVC 框架
最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务