正确加载页面的代码是什么?
当页面发生错误时会出现错误代码,但当页面正确加载时也会出现错误代码。
当页面按预期加载时,浏览器会为该页面编写什么代码?
There are error codes when something bad happens to a page but there is also a code when it loads correctly.
What browser code for a page when it loads like it should?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
它应该是 HTTP 代码 200(“确定”)。注意:这是 http 级别的,与 html 无关。它仅告诉您所请求的内容已被正确访问。
您可以查看不同 HTTP 代码的 RFC。
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
It should be HTTP code 200 ("Ok"). NB: This is on http level and has nothing to do with html. It only tells you that the requested content has been accessed correctly.
You can have a look at the RFC for the different HTTP codes.
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
通常服务器返回的代码是 200。
但是,如果文件自上次请求以来没有被修改,服务器也可能返回 304。
详细信息如下:W3 RFC 2616
Usually the code returned by the server is 200.
However, the server might also return 304 if the file was not modified since it was last requested.
The details are here: W3 RFC 2616
HTTP:200 是标准代码。请参考此处。
HTTP: 200 is the standard code. Reference here.
您可以查看此处了解所有代码的详细信息。
除了 200 之外,还有其他信号表示积极响应。
You can take a look at here for details on all codes.
In addition to 200, there are others that signal positive response.