java普通类 :Thread.currentThread().getContextClassLoader().getResource("")
js 中:
var basepath= document.location.pathname.substring(document.location.pathname.indexOf('/')+1) ;
basepath= basepath.substring(0,basepath.indexOf('/')) ;
java普通类 :Thread.currentThread().getContextClassLoader().getResource("")
js 中:
var basepath= document.location.pathname.substring(document.location.pathname.indexOf('/')+1) ;
basepath= basepath.substring(0,basepath.indexOf('/')) ;