firefox查看源代码 [英] firefox view source code

查看:172
本文介绍了firefox查看源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到Firefox中显示的源代码似乎不完整。我有最新版本。当使用Firebug插件查看网页时,我可以找到根本不被Firefox识别的元素。

I noticed that the source code shown in Firefox appears to be incomplete. I have the latest version. When using the Firebug plugin to look at a webpage, I am able to find elements which are simply not recognized by Firefox.

这是一个自动化的脚本,我正在处理

This is for a automated script I am working on.

我想知道几件事:


  1. 为什么是一个firefox插件识别元素Firefox不是?

  2. 有没有办法将源从Firebug引擎传递到Firefox,或任何其他可行的解决方法,这将使Firefox能够识别页面上的所有元素?

我的猜测是这些隐藏元素是在页面加载后由javascript创建的,但我并不确定

My guess is that these "hidden" elements have been created by javascript after the page load, but I'm not really sure.

推荐答案

我会说Firebug正在显示DOM中的什么(即即时在页面中的内容您正在查看),而View Source则显示已从服务器接收到的源(即在第一个显示页面中的页面)。

I'd say Firebug is displaying what's in the DOM (i.e. what is in the page at the instant you are looking at it), while View Source is displaing the source that has been received from the server (i.e. what is in the page at the first instant it's displayed).

如果你想从DOM中看到源,也许是 Web Developper工具栏扩展可以帮助:从我记得,它提供了一个视图生成的源选项。

If you want to see the "source" from the DOM, maybe the Web Developper Toolbar Extension can help : from what I remember, it provides a "view generated source" option.

这篇关于firefox查看源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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