摘要: // Simple JavaScript Templating// John Resig - http://ejohn.org/ - MIT Licensed(function(){ var cache = {}; this.tmpl = function tmpl(str, data){ // Figure out if we're getting a template, or if we need to // load the template - and be sure to cache the result. var fn = !/\W/.test(str) ?... 阅读全文
posted @ 2012-03-07 12:43 Nano 阅读(292) 评论(0) 推荐(0) 编辑