JavaScript的MVC框架 TrimJunction

码农软件 · 软件分类 · JavaScript MVC 框架 · 2019-03-15 22:27:36

软件介绍

TrimJunction是个开源项目,其模型很像Ruby on Rails,它提供一个可扩展的JavaScript的MVC框架。TrimJunction的特性之一是它能在内存中保存数据模型的变化。然后在重新连接后把这些变化发送给服务器。

示例代码:

BlogPost = function() {}

modelInit
('BlogPost');

BlogPost.hasMany('Comments);

BlogPost.findByShortName = function(shortName) {
    return BlogPost.find("first", { conditions: ["BlogPost.shortName = ?", shortName] });
}

本文地址:https://www.codercto.com/soft/d/1437.html

Getting Real

Getting Real

Jason Fried、Heinemeier David Hansson、Matthew Linderman / 37signals / 2009-11-18 / USD 24.99

Getting Real details the business, design, programming, and marketing principles of 37signals. The book is packed with keep-it-simple insights, contrarian points of view, and unconventional approaches......一起来看看 《Getting Real》 这本书的介绍吧!

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具