将https替换成http

String url=“https”;
String url2=url.replace(“https”,“http”);
此时的url2为“http”。

猜你喜欢

转载自blog.csdn.net/weixin_43258668/article/details/84927862