jquery, domain, get URL

前端 未结 11 2085
滥情空心
滥情空心 2020-12-12 10:04

How can I get the domain name with jquery ??

11条回答
  •  旧巷少年郎
    2020-12-12 10:41

    Similar to the answer before there there is

    location.host
    

    The location global has more fun facts about the current url as well. ( protocol, host, port, pathname, search, hash )

提交回复
热议问题