js获取当前工程路径

示例:"http://localhost:8080/platform"

currentProjectPath=window.document.location.href.substring(0,window.document.location.href.indexOf(window.document.location.pathname))+window.document.location.pathname.substring(0,window.document.location.pathname.substr(1).indexOf('/')+1);

猜你喜欢

转载自yingyingsheji.iteye.com/blog/2368775
今日推荐