摘要: javascript String.format实现:挺精巧的,其中关键一点是replace方法的参数(可以为RegExp),以及js的闭包。如果对闭包有疑惑请Google一下。代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<scriptt... 阅读全文
posted @ 2010-02-22 10:44 David Dong 阅读(381) 评论(0) 推荐(0) 编辑