如何使用Firebug的Monitor(fn)? [英] How to use Firebug's monitor(fn)?

查看:131
本文介绍了如何使用Firebug的Monitor(fn)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我阅读了有关命令行API 的Firebug文档.

I read the Firebug documentation about the Command Line API.

在命令编辑器中写入monitor(functionName),然后按 Ctrl + Enter .我什么也看不见...可能是我对该命令的理解是完全错误的.

Wrote monitor(functionName) in the command editor and pressed Ctrl+Enter. I can't see anything happening... May be my understanding of this command is completely wrong.

我用谷歌搜索,但仍然对如何使用此API命令感到困惑?

I googled but I am still confused how to use this API command?

推荐答案

对我来说很好...

查看我在 http://fiddle.jshell.net/gaby/上所做的示例LbCYn/show/

打开控制台,然后放入monitor(toBeMonitored);.现在,每次单击该按钮,它将在控制台中显示该方法已执行..

Open the console and put monitor(toBeMonitored);. Now each time you click the button it will put in the console that the method was executed..

这篇关于如何使用Firebug的Monitor(fn)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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