从url地址获取主机名
摘要:
function getHost(url) { var host = "null"; if(typeof url == "undefined"|| null == url) { url = window.location.href; } var regex = /^\w+\:\/\/([^\/]*) 阅读全文
posted @ 2022-08-24 20:27 流浪のwolf 阅读(35) 评论(0) 推荐(0) 编辑