Chrome Elements 标签页 和 View Source 的显示为什么有差异

我发现的问题,meta 标签在 Chrome 开发者工具 Elements 面板里存在:

但是在 view source 里没有:

搜索 StackOverflow,有人遇到了同样的问题。

https://stackoverflow.com/questions/5572297/chrome-inspect-element-vs-view-source

4

View Source in Chrome sends another request for the file, and since it's not authenticated, it returns the source of the login page. This is different from the way say IE works, where the source is cached and returned when you try to view it.

Inspect Element shows the current DOM's snapshot data. This is what you got from making your initial, authenticated request. So yes, this is the "correct" one.

根据回复,以我们在 Inspect Element 里看到的为准。

更多Jerry的原创文章,尽在:"汪子熙":


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章