开发者

How do I extract the first part of a url?

开发者 https://www.devze.com 2023-01-21 07:05 出处:网络
Given: http://something.com:4567/data/21/28/188 How do I get only the following with JavaScript? http://some开发者_如何学JAVAthing.com:4567/

Given:

http://something.com:4567/data/21/28/188

How do I get only the following with JavaScript?

http://some开发者_如何学JAVAthing.com:4567/


window.location.protocol+'//'+window.location.host

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号