摘要: String.prototype.format = function() { var args = arguments; return this.replace(/\{(\d+)\}/g, function(g0, g1) { return args[+g1]; }); } "hello {0},{0}'s age is... 阅读全文
posted @ 2016-04-15 11:56 大赚佬 阅读(129) 评论(0) 推荐(0) 编辑