//获取当前网址
var Path = window.document.location.href;
//获取主机地址之后的目录
var pathName = window.document.location.pathname;
var index = pathName.substr(1).indexOf("/");
//获取项目名后的界面名
var menuURL = pathName.substr(index+2,Path.length);
//获取当前网址
var Path = window.document.location.href;
//获取主机地址之后的目录
var pathName = window.document.location.pathname;
var index = pathName.substr(1).indexOf("/");
//获取项目名后的界面名
var menuURL = pathName.substr(index+2,Path.length);