坏小仔

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年8月23日

摘要: 1 (function(){ 2 var cache = {}; 3 4 this.tmpl = function tmpl(str, data){ 5 // Figure out if we're getting a template, or if we need to 6 // load the template - and be sure to cache the result. 7 var fn = !/\W/.test(str) ? 8 cache[str] = cache[str] || t... 阅读全文
posted @ 2012-08-23 11:34 坏小仔 阅读(196) 评论(0) 推荐(0) 编辑