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

Building Social Web Applications

Building Social Web Applications

Gavin Bell / O'Reilly Media / 2009-10-1 / USD 34.99

Building a social web application that attracts and retains regular visitors, and gets them to interact, isn't easy to do. This book walks you through the tough questions you'll face if you're to crea......一起来看看 《Building Social Web Applications》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具