document.location.pathname
function getContextPath() {
var contextPath = document.location.pathname;
var index =contextPath.substr(1).indexOf("/");
contextPath = contextPath.substr(0,index+1);
delete index;
return contextPath;
}
IE ff通用
js获取当前应用名
最新推荐文章于 2023-09-26 21:07:57 发布