JavaScript MVC 框架 Ity
- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://github.com/dcocchia/Ity
- 软件文档: https://github.com/dcocchia/Ity
软件介绍
Ity 是一个小型的无依赖的 JavaScript MVC 框架。
示例代码:
var myApp = new Ity.Application();
var myModel = new Ity.Model();
var myView = new Ity.View({
el: '.someElement',
app: myApp,
model: myModel,
events: {
".btn" : {
"click": "onBtnClick",
"hover": "onBtnHover"
},
".fancyBtn" : {
"click": "onFancyBtnClick",
"focus": "onFancyBtnFocus"
}
},
initialize: function(options) {
this.model.on("change", this.render, this);
},
render: function() {
this.select(".myContainer").html(this.model.get("someData"));
},
onBtnClick: function(evt) {
var output = this.select("#difWithId").find(".output");
output.html("<div><p>Click!</p></div>")
}
//... more click, hover, focus events from events hash
});
Inside Larry's and Sergey's Brain
Richard Brandt / Portfolio / 17 Sep 2009 / USD 24.95
You’ve used their products. You’ve heard about their skyrocketing wealth and “don’t be evil” business motto. But how much do you really know about Google’s founders, Larry Page and Sergey Brin? Inside......一起来看看 《Inside Larry's and Sergey's Brain》 这本书的介绍吧!
