从javascript获取当前页面http状态 [英] Get current page http status from javascript

查看:136
本文介绍了从javascript获取当前页面http状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法从javascript获取当前网页的http状态?

Is there any way to get the http status of the current web page from javascript?

花了一些时间在网上搜索,但没有运气...看起来似乎不可能,但想查看StackOverflow可能有些奇特的解决方法。

Spent some time searching on the web, but no luck at all... Seems like it's not possible, but wanted to check with StackOverflow for maybe some fancy workaround.

(作为响应机构的一部分从服务器提供它是不可接受的,该状态应该仅通过http标头提供)

(Providing it from the server as part of the response body is not acceptable, the status is supposed to be only available via the http header)

推荐答案

这是不可能的,抱歉。

这篇关于从javascript获取当前页面http状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆