Is “Page Source” BEFORE or AFTER JavaScript has been rendered?

前端 未结 4 1183
逝去的感伤
逝去的感伤 2020-12-18 20:26

In Firefox there is a menu item that displays \"Page Source\": View | Page Source (Ctrl+U). In Internet Explorer there is a similar function.

When you invoke it, it

4条回答
  •  失恋的感觉
    2020-12-18 21:17

    Before. The page source is the result of the GET request by the browser sans headers. If you want to view the updated content after scripts and so forth, you'll have to use a tool like Firebug or the Web Development toolbar.

提交回复
热议问题