在较新的Chrome开发工具中,您可以选择过滤控制台日志的噪音。它为您提供了以下选择:
在旧版本中,我们可以合并过滤器。这很酷,因为它让你可以更好地控制控制台日志 - 比如你只想显示"错误"和"信息",但不是"警告",您将按下"错误",然后//EXAMPLE: SELECT * FROM games WHERE cat_type = 1
$query = $this->db->select('*')->get_where('games', array('cat_type' => '1'));
//EXAMPLE with condition: SELECT * FROM games WHERE cat_type != 1
/*
$query = $this->db->select('*')->get_where('games', array('cat_type !=' => '1'));
*/
if($query->result()){
foreach ($query->result() as $row) {
#do something here to get value of another rows or etc
}
}
"信息"按钮。繁荣 - 完成
因此Chrome团队中有人认为这太方便了,因为它现在已被删除。
我的问题是:我如何"还原"对于旧的开发工具,我可以再次对我的过滤进行细粒度的控制?任何人都有更好的解决方案吗?
答案 0 :(得分:1)
邮件列表中的主题有big discussion。
在Chrome Canary中,您可以enable multiple levels, like before。
请注意,console.log()
和console.info()
都已归入信息存储区。