console.log 在 Chrome 中无法在非隐身模式下工作
console.log not working in non-icognito mode in Chrome
我在 Google Chrome 的常规模式下遇到 console.log 的问题。相同的代码在 Opera 和 Chrome 中以隐身模式正确登录。
在这里,我阅读了关闭 Firebug 扩展的建议,但我没有。
Console.log messages not showing up in Chrome's javascript console?
我尝试关闭所有扩展,然后再次测试 console.log(和警报)但没有成功。 in incognito mode it works fine,级别过滤器也设置为所有级别(顺便说一句,为什么禁用它?)所以没有隐藏任何内容。
相同的代码
$("#turnOffAll").click(function(){
var filterId=$('#filterId').val();
console.log('clicked on filter'+filterId);
});
在 Chrome 的常规模式下不输出任何内容。
什么会导致这种行为?
您可能没有在控制台中启用正确的级别:
删除缓存对我有用。打开三点菜单 -> 更多工具 -> 删除浏览器数据 -> select 缓存。
我在 Google Chrome 的常规模式下遇到 console.log 的问题。相同的代码在 Opera 和 Chrome 中以隐身模式正确登录。 在这里,我阅读了关闭 Firebug 扩展的建议,但我没有。 Console.log messages not showing up in Chrome's javascript console?
我尝试关闭所有扩展,然后再次测试 console.log(和警报)但没有成功。 in incognito mode it works fine,级别过滤器也设置为所有级别(顺便说一句,为什么禁用它?)所以没有隐藏任何内容。
相同的代码
$("#turnOffAll").click(function(){
var filterId=$('#filterId').val();
console.log('clicked on filter'+filterId);
});
在 Chrome 的常规模式下不输出任何内容。
什么会导致这种行为?
您可能没有在控制台中启用正确的级别:
删除缓存对我有用。打开三点菜单 -> 更多工具 -> 删除浏览器数据 -> select 缓存。