页面获取项目地址

var obj = window.document.location;
var BASE_PATH = obj.href.substring(0, obj.href.indexOf(obj.pathname));
console.log(BASE_PATH);
posted @ 2020-02-18 14:17  proper128  阅读(125)  评论(0编辑  收藏  举报