Home
Sign Up
Sign In
V2EX
›
问与答
[菜鸟题] 所以 JS 要用 replace 替换全部网址中的域名,应该怎么写执行最快?
ab
·
Dec 10, 2018
· 2514 views
This topic created in 2827 days ago, the information mentioned may be changed or developed.
urls.replace(/( http|https):\/\/(.*?)\//g, "新网址 /");
目前是这种写法
No Comments Yet
网址
PLA
Replace
域名
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
4139 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 22ms ·
UTC 04:12
·
PVG 12:12
·
LAX 21:12
·
JFK 00:12
♥ Do have faith in what you're doing.
❯