正确用法
"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

相关文章:

  • 2022-12-23
  • 2021-08-08
  • 2021-11-11
  • 2021-10-29
  • 2021-08-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-02
  • 2022-01-11
  • 2022-02-16
  • 2022-12-23
  • 2022-12-23
  • 2021-07-03
  • 2022-12-23
相关资源
相似解决方案