获取URl到系统名称
2021-05-05 17:29
阅读:484
标签:host script div ati protoc highlight substring index toc 获取URl到系统名称 标签:host script div ati protoc highlight substring index toc 原文地址:https://www.cnblogs.com/zhipeng007/p/12105502.html
var PathName = window.location.pathname.substring(1);
var ProjectName = PathName.substring(0, PathName.indexOf("/"));
var URL = window.location.protocol + "//" + window.location.host + "/" + ProjectName;
上一篇:CSS层叠样式表01
评论
亲,登录后才可以留言!