czl-web/js/publicJs.js

11 lines
310 B
JavaScript
Raw Normal View History

2025-05-20 13:54:27 +08:00
// var ctxPath = getContextPath();
var ctxPath = "http://192.168.0.38:18080/czl";
2025-05-20 16:19:38 +08:00
var pagesPath = getContextPath();
2025-05-20 13:54:27 +08:00
2025-05-20 16:19:38 +08:00
function getContextPath() {
var pathName = document.location.pathname;
var index = pathName.substr(1).indexOf("/");
var result = pathName.substr(0, index + 1);
return result;
}