摘要: //一种简单快速的模板解析方法,活用withvar parseTpl = function( str, data ) { var tmpl = 'var __p=[];' + 'with(obj||{}){__p.push(\'' + str.replace( /\\/g... 阅读全文
posted @ 2015-12-17 18:22 无工时代 阅读(332) 评论(0) 推荐(0) 编辑