Firefox - 附加软件 - Firebug - Console控制台视图 - 使用console.time()计算时间
来源:互联网 发布:软件部署的网络拓扑图 编辑:程序博客网 时间:2024/09/21 09:02
Firefox - 附加软件 - Firebug - Console控制台视图 - 使用console.time()计算时间
[Console控制台视图API文档]
http://www.getfirebug.com/console.html
[console.time()的文档]
console.time(name)
Creates a new timer under the given name. Callconsole.timeEnd(name)
with the same name to stop the timer and print the time elapsed..用指定名称创建一个定时器,使用同一个名称调用console.timeEnd(name)将停止定时器并输出时间间隔。
console.timeEnd(name)
Stops a timer created by a call to console.time(name)
and writes the time elapsed.
停止通过console.time(name)创建的定时器,并输出时间间隔。
[console.time()的示例]
>>> console.time("test")
>>> console.timeEnd("test")
test: 7078ms
[Firefox - 附加软件]
CookieSafe, 当前版本2.0.6, 常用, https://addons.mozilla.org/en-US/firefox/addon/2497Firebug, 当前版本1.05, 常用, https://addons.mozilla.org/en-US/firefox/addon/1843
Google Toolbar for Firefox, 当前版本3.0.20070525W, 常用, http://www.google.com/tools/firefox/toolbar/FT2/intl/zh-CN/
Html Validator, 当前版本0.8.4.0, 常用, https://addons.mozilla.org/firefox/249/
MinimizeToTray, 当前版本0.0.1.2006102615+, 不常用, https://addons.mozilla.org/firefox/2110/
Tab Mix Plus, 当前版本0.3.6, 不常用, https://addons.mozilla.org/firefox/1122/
Torbutton, 当前版本1.0.4.01, 常用, https://addons.mozilla.org/en-US/firefox/addon/2275
[Firebug - 简介]
当前版本:1.05Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page.
在您浏览时集成在Firefox中的Firebug能让您对于大量开发工具了如指掌。您可以实时在任何浏览的页面中编辑、调试、监视CSS,HTML和JavaScript。
Visit the Firebug website for documentation, screen shots, and discussion forums:
访问Firebug站点可以获得文档、效果图和讨论论坛。
[Firebug - 发布网址]
https://addons.mozilla.org/en-US/firefox/addon/1843[Firebug - 站点]
http://www.getfirebug.com[Firebug - 文档]
http://www.getfirebug.com/docs.html[Firebug - bug]
http://code.google.com/p/fbug/issues/list[Firebug - 关键词]
Firebug[Firebug - 论坛]
http://groups.google.com/group/firebug[Firebug - Console控制台视图]
console API文档, http://www.getfirebug.com/console.htmlconsole.info显示(i)图标
在输出时,需要注意第一个参数被自动识别为格式字符串
需要在页面加载前启动firebug,当页面加载后启动firebug时,就没有console对象
console.time(name), 用指定名称创建一个定时器,使用同一个名称调用console.timeEnd(name)将停止定时器并输出时间间隔。
console.timeEnd(name), 停止通过console.time(name)创建的定时器,并输出时间间隔。
[Firebug - HTML页面视图]
Show Computed Style不显示所有可用的样式标记的显示也会与源代码不同,而是按照Firefox对文档结构的解析显示的
在页面上右击弹出菜单中选择Inspect Element菜单项,能起到与Inspect按钮相同的作用。
[Firebug - CSS样式表视图]
Edit编辑模式下切换文件不能保持Edit编辑模式[Firebug - Script脚本视图]
使用step into, step over等按钮需要预先设置javascript脚本的断点
Options中的BreakOnErrors项用于捕获javascript出错事件,不受javascript脚本中的try/catch影响
[Firebug - DOM文档结构视图]
页面中包含不断执行的AJAX时,DOM视图也将不断刷新,此时可以在script视图中AJAX脚本处设置断点避免DOM视图刷新。借助Show User-defined Properties选项查看javascript全局变量
[Firebug - Net网络视图]
进度条
进度条颜色
文字颜色
含义
有
绿色
黑色
正在读取 有
深灰色
黑色
向服务器端发送请求,从服务器端返回文件 有
深灰色
红色
404,没有找到指定文件
有
浅灰色
黑色
向服务器端发送请求,服务器端返回未修改,加载本地缓存文件 无
-
黑色
未向服务器发送请求,直接从本地缓存加载文件
进度条颜色
文字颜色
含义
有
绿色
黑色
正在读取 有
深灰色
黑色
向服务器端发送请求,从服务器端返回文件 有
深灰色
红色
404,没有找到指定文件
有
浅灰色
黑色
向服务器端发送请求,服务器端返回未修改,加载本地缓存文件 无
-
黑色
未向服务器发送请求,直接从本地缓存加载文件
[Firebug - 其他问题]
不支持IE Tab- Firefox - 附加软件 - Firebug - Console控制台视图 - 使用console.time()计算时间
- Firefox - 附加软件 - Firebug - Console控制台视图 - console.info显示(i)图标
- Firefox - 附加软件 - Firebug - Console控制台视图 - console对象输出时,需要注意第一个参数被自动识别为格式字符串
- Firebug中console.time()计算时间
- Firefox - 附加组件 - 扩展 - Firebug - console控制台面板 - 提供console控制台对象
- console firebug 控制台
- Firebug & Chrome Console 控制台使用指南
- Firebug & Chrome Console 控制台使用指南
- FireBug的console使用
- Firefox - Firebug附加软件 - HTML页面视图 - Inspect Element
- Firefox - 附加软件 - Firebug - 文档
- firebug--console
- Firebug & Chrome Console 控制台使用指南
- Firebug & Chrome Console 控制台使用指南
- Firebug使用之一--Console Panel
- console使用 Chrome控制台
- js 使用console计算代码运行时间
- Firefox - 附加软件 - Firebug - DOM文档结构视图 - “冻结”被AJAX不断更新的DOM视图
- 日历小程序
- Sybase PowerDesigner v12.0 破解版免费下载
- 四种程序启动画面的制作方法(VC)
- Ubuntu日记3
- 学习StringBuffer
- Firefox - 附加软件 - Firebug - Console控制台视图 - 使用console.time()计算时间
- freshmen
- 卸载远程线程中的DLL
- struts2配置文件介绍
- AWT小例子---浮动按扭
- php 生成文件函数
- 正确优雅的解决用户退出问题——JSP和Struts解决方案【转】
- struts2新特性预览
- 文件的创建与读写