去掉JavaScript字符串中的http或https

31 浏览
0 Comments

去掉JavaScript字符串中的http或https

我有以下字符串

http://example.com
https://example.com
http://www.example.com

我该如何去掉http://https://

0