日期:2014-05-16 浏览次数:20344 次
function getContextPath() {??? var pathName = document.location.pathname;??? var index = pathName.substr(1).indexOf("/");??? var result = pathName.substr(0,index+1);??? return result;}