我正在尝试修复我的网站,发现这个名为Firebug的好工具.我试图找出为什么我的网站加载速度很慢(基于wordpress的网站).我希望看看是否有人能给我一些提示.我在Net-> All下获得的结果是.
GET www.XXXXX.com http://www.XXXXX.com/ 302 Moved
Temporarily ? 10.08s
GET XXXXX.com http://XXXXX.com/ 200
OK XXXXX.com 9 KB 7.36s
GET submenucontents.htm?1232464334833
http://XXXXX.com/wp-content/themes/bl_custom/submenucontents.htm?1232464334833
200 OK XXXXX.com 878 B 442ms
3 requests
Run Code Online (Sandbox Code Playgroud)
我首先尝试使用www访问该站点(并将其重定向到没有www前缀的地址).
在GET XXXXX.com的响应标题下,我得到:
Response Headers
Date Tue, 20 Jan 2009 15:12:03 GMT
Server Apache
Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-
check=0
Expires Thu, 19 Nov 1981 08:52:00 GMT
Pragma no-cache
X-Pingback http://XXXXX.com/xmlrpc.php
Set-Cookie xLanguage_7b770aac8932bb67100357a3682248c9=en; expires=Sat,
02-Jan-2010 20:32:09 GMT; path=/
Keep-Alive timeout=15, max=100
Connection Keep-Alive
Transfer-Encoding chunked
Content-Type text/html; charset=UTF-8
Request …Run Code Online (Sandbox Code Playgroud) 我有一个变量d,我用这个:
$(function() {
for(i = 1; i <= 31; i++) {
var d = '#days' + i;
if ($(d).attr("id").substr(4,2) == 11) {
$(d).addClass("date_has_event");
//console.log("diez");
} else {
console.log("otro");
}
}
}
Run Code Online (Sandbox Code Playgroud)
但是我在firebug中收到以下错误:
$(d).attr("id") is undefined
index.html (L23) (?)()()
jquery.min.js (L27) onreadystatechange()()
jquery.min.js (L27) onreadystatechange()()
jquery.min.js (L21) nodeName()([function(), function()], function(), undefined)
onreadystatechange()()
我真的不明白为什么.有人知道吗?
编辑
对于我必须运行的糟糕解释,我感到很遗憾,这里的内容更加详细.我正在使用javascript生成日历.每个td有一个不同的id(因此#days + i),我从1到31运行它,所以我可以覆盖更长的月份.但是我收到了上面提到的错误.我也使用jQuery库让我更容易选择(即代替getElementById #days)
我用Firefox和firebug插件开发了我的网站,但是当我将它部署到其他浏览器(IE/Chrome)时,控制台窗口出现在屏幕的底部(非常烦人).
我怎么能禁用它?为什么会出现?
迦特
是否可以在加载页面时禁用firebug?
我试过了:
console.disabled;
Run Code Online (Sandbox Code Playgroud)
......但没有奏效.有任何想法吗?
我正在用firebug检查这个页面上的代码:
http://www.phppennyauctiondemo.com/
在右上角,有一个"注册"按钮和一个链接.
当我选择与firebug的链接时,在firebug的"Style"部分,我找不到display:block属性,即使我知道它在那里(它可以在firebug的"Computed"部分找到,它清楚地说,显示:块).
因此,如果链接具有默认的内联显示,并且没有使用css更改,那么为什么这个元素有一个display:block?我在这里失踪了什么?
如何防止调试器(在这种情况下为Firebug或PhpStorm)从jQuery及其插件源代码中跳出来,只是跨过我们自己的代码?
我正在使用我网站上的Chosen Select Box Jquery插件.select中的选项使用ajax更新,因此当您在1框中选择某些内容时,将显示下一个框的选项.
我几乎让它工作,但当我点击第二个框选项时,第三个框选项不显示.我在FireBug中遇到错误说:
TypeError:item未定义
item.selected = true;
它说它在Chosen Box的js文件中.
JS =======================
Chosen.prototype.result_select = function(evt) {
var high, high_id, item, position;
if (this.result_highlight) {
high = this.result_highlight;
high_id = high.attr("id");
this.result_clear_highlight();
if (this.is_multiple) {
this.result_deactivate(high);
} else {
this.search_results.find(".result-selected").removeClass("result-selected");
this.result_single_selected = high;
this.selected_item.removeClass("chzn-default");
}
high.addClass("result-selected");
position = high_id.substr(high_id.lastIndexOf("_") + 1);
item = this.results_data[position];
item.selected = true; <---------- Error
this.form_field.options[item.options_index].selected = true;
if (this.is_multiple) {
this.choice_build(item);
} else {
this.selected_item.find("span").first().text(item.text);
if (this.allow_single_deselect) this.single_deselect_control_build();
}
if (!(evt.metaKey && this.is_multiple)) this.results_hide();
this.search_field.val(""); …Run Code Online (Sandbox Code Playgroud) 我想在每个网页上禁用使用firebug.有时,我们在我的ui小部件中嵌入了重要的键或id.服务器端的一些方法将采用这些密钥进行处理.所以,有人可以通过firebug进行编辑.这可能导致数据库的错误数据更新或网页中显示的错误数据.对于安全选项,我想禁用使用firebug或浏览器的其他开发人员工具.作为GoogleChrome的主页,当我打开firebug时,我想显示如下错误信息..

我该怎么做呢?例如:我想用JavaScript验证我的表单数据,或者使用JQuery Form Validation, 这很好.但是,当我使用firebug和删除错误消息的元素将成为验证此表单.如何防止它!任何建议将不胜感激.真的,我不仅意味着firebug,还意味着其他开发人员工具,插件,插件.我的问题要点是如何禁用它们.Chrome浏览器主页处理和验证表单实例中的FireBug是我想要做的示例.
firefox firebug google-chrome firefox-addon google-chrome-extension
我需要检查一个网站中的HTML元素,但我不能,因为该元素隐藏得非常快.
当我悬停元素B时,元素A出现,当我的光标从元素B出来时,元素A消失.所以我不知道如何找出直接的父母,我不知道它是否被隐藏了.
如何检查快速隐藏的元素?
html firebug google-chrome code-inspection google-chrome-devtools
我们在firefox量子浏览器中有什么替代火路径的吗?Firepath用于标识xpath.但我在firefox量子浏览器中看不到任何有用的插件.如果firefox量子版本中有任何替代firepath,请告诉我们