Get second level domain name from URL

前端 未结 0 1524
情歌与酒
情歌与酒 2021-02-15 04:07

Is there a way to get top level domain name from the url

for e.g., \"https://images.google.com/blah\" => \"google\"

I found this:

var domain = n         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题