firefox 中如何使用js获取当前应用名 jsp中我们可以使用${pageContext.request.contextPath}获得而在IE中可以通过js 使用window.location.pathname获得 然后再截取那么在firefox中如何获得呢? 貌似ff不支持location 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 问题已解决:document.location.pathnamefunction getContextPath() { var contextPath = document.location.pathname; var index =contextPath.substr(1).indexOf("/"); contextPath = contextPath.substr(0,index+1); delete index; return contextPath;}IE ff通用 ${pageContext.request.contextPath}js也可以调用 为什么Println输出的顺序有问题呢 C/S结构的PMI实现 接口作为参数 java如何调用dll文件升级程序? 在鼠标按下与鼠标释放之间的这段时间内进行数据累加 如何获得这个格式的时间? jar文件执行错误 第一次进java论坛,希望能够得到大家的帮助,以后多多指教。 再次Q:在APPLICATION中如何显示图片和播放*.au文件????????????? Java - No enclosing instance of type is accessible 响应delete键 谁是第一名(逻辑推理)
document.location.pathnamefunction getContextPath() {
var contextPath = document.location.pathname;
var index =contextPath.substr(1).indexOf("/");
contextPath = contextPath.substr(0,index+1);
delete index;
return contextPath;
}
IE ff通用
js也可以调用