javascript - 在 IE9 中使用 angularjs 重定向页面时的问题
问题描述
我有以下脚本可以重定向到我想要的页面
$location.$$urlUpdatedByLocation = true;
$location.$$absUrl = location.origin+location.pathname+"busqTerceros.html";
在文件 busqTerceros.html 我有以下内容:
<meta http-equiv="refresh" content="0; url=/cones/#!/search" />
这个搜索是从 AngularJS api 路由器完成的。从我在论坛上读到的内容,IE 在使用 #! 时会丢失路径。
有谁知道为什么 IE 会这样做?如何解决?
这适用于 Google chrome、Firefox,但不适用于 IE,屏幕上生成的错误如下: 错误
解决方案
推荐阅读
- python-3.x - 结合不同的seaborn分布图
- azure - 拒绝:在 Azure DevOps 管道中检索权限失败
- python - 即使条件为假,While 循环仍在运行
- javascript - 添加新路由时出错,路由配置中需要路径
- angular - 将 .next() 与 takeUntil 一起使用时的参数
- javascript - Javascript属性一旦改变就不会改变
- angular - 如何查看是否有兄弟投影内容?
- selenium - WebDriverWait.until.expected_conditions.presence_of_element_located 不等待重新加载 DOM
- sql-server - 无法连接到 Azure VM 上的远程 MSSQL(经典)
- python - 如何使用 Python (BeautifulSoup) 从网上抓取表格?