Questions tagged «hostname»


12
如何在JavaScript中提取URL的主机名部分
是否有一种从完整网址开始的简单方法: document.location.href = "http://aaa.bbb.ccc.com/asdf/asdf/sadf.aspx?blah" 并仅提取主机部分: aaa.bbb.ccc.com 必须有一个可靠地执行此操作的JavaScript函数,但我找不到它。





By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.