gpt4 book ai didi

javascript - 使用 XDomainRequest 时如何获取 header

转载 作者:行者123 更新时间:2023-11-28 03:06:52 26 4
gpt4 key购买 nike

我正在尝试在 ie9 上使用 XDomainRequest 执行请求,我面临的问题是尝试获取响应 header 时。

它是否支持 getResponseHeader 方法或在对象 API 中有类似的方法?

最佳答案

我检查了文档,发现XDomainRequest没有getResponseHeader方法或类似的方法。

在文档中,我注意到这是一个过时且非标准的功能。

Obsolete

This feature is obsolete. Although it may still work in somebrowsers, its use is discouraged since it could be removed at anytime. Try to avoid using it.

Non-standard

This feature is non-standard and is not on a standards track. Do notuse it on production sites facing the Web: it will not work for everyuser. There may also be large incompatibilities betweenimplementations and the behavior may change in the future.

引用:XDomainRequest

Internet Explorer 9 也超出了 Microsoft 的支持范围。

建议迁移到最新的 Microsoft 浏览器或至少迁移到 IE 11 浏览器。然后你可以尝试使用XMLHttpRequest

关于javascript - 使用 XDomainRequest 时如何获取 header ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60536230/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com