var url = "http://blog.csdn.net:60000/jungsagacity/article/details/7645580";
url = url.replace(/^http:\/\/[^/]+/, "");
image.png
var url = "http://blog.csdn.net:60000/jungsagacity/article/details/7645580";
url = url.replace(/^http:\/\/[^/]+/, "");
image.png
本文标题:正则 url 去除ip和端口
本文链接:https://www.haomeiwen.com/subject/wakpwltx.html
网友评论