JavaScript开发框架 Sammy.js

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

软件介绍

Sammy.js 是一个微型的 JavaScript 框架用来简化 JavaScript 应用程序的编写,其核心只有 16K,压缩后 5.2K 大小。

示例代码:

// initialize the application
var app = Sammy('#main', function() {
 
// include a plugin
 
this.use('Mustache');

 
// define a 'route'
 
this.get('#/', function() {
   
// load some data
   
this.load('posts.json')
       
// render a template
       
.renderEach('post.mustache')
       
// swap the DOM with the new content
       
.swap();
 
});
});

// start the application
app
.run('#/');

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

Web Design Handbook

Web Design Handbook

Baeck, Philippe de 编 / 2009-12 / $ 22.54

This non-technical book brings together contemporary web design's latest and most original creative examples in the areas of services, media, blogs, contacts, links and jobs. It also traces the latest......一起来看看 《Web Design Handbook》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具