如何获取没有子域名的域名?
例如,如果网址是" http://one.two.roothost.co.uk/page.html "如何获得"roothost.co.uk"?
javascript
下面是我的 URL,我只想要子域,即 dnyaneshtechno
网址: https: //dnyaneshtechno.sharepoint.com
根据上面的 URL,我只想获取“dnyaneshtechno”,我正在使用 Angular 8 作为前端,所以有人可以帮助我吗?
javascript jquery angular angular6 angular8
javascript ×2
angular ×1
angular6 ×1
angular8 ×1
jquery ×1