js-replace

正确用法
"pages/user/user.html".replaceAll('/','e');
"pageseusereuser.html"
 
 
"pages/user/user.html".replaceAll('/','_');
"pages_user_user.html"
错误用法
"pages/user/user.html".replaceAll('//','_'); xx
 
console.log(titles2[0].url.replaceAll('/','_').split('.')[0]); vv
posted on 2013-05-15 14:12  yun007  阅读(130)  评论(0)    收藏  举报