window.location.href ie 不兼容问题
2024-10-15 10:04:46
今天再做项目演示的时候,用的是ie浏览器报错404,项目都运行好久了,第一次用ie就这样了悲剧,贴下解决方法吧
function getContextPath() {
var pathName = document.location.pathname;
var index = pathName.substr(1).indexOf("/");
var result = pathName.substr(0,index+1);
return result;
} window.location.href=getContextPath()+"/jurisdiction/jumpAddAccessPath.action;
最新文章
- 阿里云安装LNMP以及更改网站文件和MySQL数据目录
- centos 7 安装mysql
- php之无限极分类
- Orchard Compact v1.7.2
- poj3295
- git subtree用法(转)
- css 自制一些小特效
- Ubuntu中,wxpython的TextCtrl引发的error:_pixman_log_error
- C#异步方法
- CentOS6.5配置 cron
- HTML5 播放器
- 转:The Difference Between a LayoutTransform and a RenderTransform
- SQL里执行CLR c#代码
- ConcurrentModificationException原因及排除
- JBPM使用方法、过程记录
- 加载ConversationListActivity以及延迟的使用
- 3223. 文艺平衡树【平衡树-splay】
- 超简单将Centos的yum源更换为国内的阿里云源
- 总结golang之map
- 系统管理命令之logname