2015年10月28日
摘要: 先上代码var formatString = function(str,data){ return str.replace(/\{#(\w+)#\}/g,function(match,key){ return typeof data[key] === undefined ? '' :... 阅读全文
posted @ 2015-10-28 16:56 小武爷 阅读(283) 评论(0) 推荐(0) 编辑