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
posted @ 2015-06-10 09:44
posted @ 2015-05-14 17:23
posted @ 2015-05-08 18:19
posted @ 2015-04-27 17:05