随笔分类 -  Javascript

replace函数
摘要:function replaceAll(strOrg, strFind, strReplace) { var index = 0; while (strOrg.indexOf(strFind, index) != -1) { strOrg = strOrg.replace(strFind, strReplace); index = strOrg.indexOf(strFind, index); } return strOrg } 阅读全文
posted @ 2012-09-20 11:09 老猫zl 阅读(266) 评论(0) 推荐(0)