配置url路径


var basePath = null;


/*===初始化页面时获得web应用url根路径===*/


var host = window.location.host;
var scheme = window.location.protocol;
var pathname = "mechanical_spring_webapp";

basePath = scheme + "//" + host + "/" + pathname + "/";


url:basePath+"Servlet",




你可能感兴趣的:(配置url路径)