会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Johnny.Chen
博客园
首页
新随笔
联系
管理
订阅
2013年1月31日
正则表达式中使用变量
摘要: 首先引入一道题:完成下面的函数。/* @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)
编辑
公告