2015年6月10日

js中替换字符串

摘要: js中替换字符串数字人发表于:2012-3-20 20:23:53function formatStr(str){str=str.replace(/\r\n/ig,"");return str;}要注意两点:要使用正则表达式,不能使用 str.replace("\r\n", newString); ... 阅读全文

posted @ 2015-06-10 09:44 云中园 阅读(203) 评论(0) 推荐(0) 编辑

导航