摘要: 首先引入一道题:完成下面的函数。/* @Description:使用传入的参数格式化字符串string 用第一个参数替换{0},第二个参数替换{1}... @param:string 格式如 this is test {0}{1} @param:data 如果data=hello,用该值替换string后的值为 this is test hello{1} */ function stringFormat(string,data) { } ... 阅读全文
posted @ 2013-01-31 12:55 Johnny.Chen 阅读(26026) 评论(0) 推荐(0) 编辑