获取URl到系统名称

var PathName = window.location.pathname.substring(1);
var ProjectName = PathName.substring(0, PathName.indexOf("/"));
var URL = window.location.protocol + "//" + window.location.host + "/" + ProjectName;
posted @ 2019-12-27 09:05  ZhiPeng007  阅读(184)  评论(0编辑  收藏  举报