转自原文:https://blog.csdn.net/fuli_mouren/article/details/8992729
var local = window.location;
var contextPath = local.pathname.split("/")[1];
var basePath = local.protocol+"//"+local.host+"/"+contextPath;
转自原文:https://blog.csdn.net/fuli_mouren/article/details/8992729
var local = window.location;
var contextPath = local.pathname.split("/")[1];
var basePath = local.protocol+"//"+local.host+"/"+contextPath;