【问题标题】:Network Error 0x7b when running angular on IE在 IE 上运行 Angular 时出现网络错误 0x7b
【发布时间】:2018-10-07 23:23:48
【问题描述】:

我正在使用 IE11。 我的 Angular 应用程序适用于 Chrome 和 Firefox。

当我在我的应用程序上触发 Http 请求时,我收到此错误

SCRIPT7002: XMLHttpRequest: Network Error 0x7b, The filename, directory name, or volume label syntax is incorrect.
file : search

http://localhost:4200/search 是实际路径。

当我点击 file : search我在调试器中收到这条消息Error when open http://localhost:4200/search (this message appear when I trigger the HTTP service)

我在 index.html 上添加了一些 meta 但没有结果

<!DOCTYPE  html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=Edge">
...

【问题讨论】:

    标签: angular internet-explorer xmlhttprequest


    【解决方案1】:

    我找到了解决办法

    在我的代码中,我以这种方式调用服务器 ip http:///IP.com(3 个斜线)

    将其更改为http://IP.com 解决了错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-07-07
      • 2018-08-28
      • 1970-01-01
      • 2010-09-14
      • 1970-01-01
      • 1970-01-01
      • 2021-08-14
      • 1970-01-01
      相关资源
      最近更新 更多