jsreplace

正确用法
"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
原文地址:https://www.cnblogs.com/yun007/p/3079764.html