Replies: 1 comment 4 replies
-
你把书源发一下吧 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
部分url中存在转义符(\),url格式如:http://www./xxxx/.com/xxx。使用replace替换时,要么只替换了第一个,要么没有替换。正则和普通字符串替换都不行,是写法问题,还是内置js执行器问题?以下写法在浏览器中测试没有问题。
写法如下:1:result.replaceAll('\',''); 2:result.replaceAll(/\/,'/');
Beta Was this translation helpful? Give feedback.
All reactions