console.log()在Safari 6.0 Web Inspector中不起作用 [英] console.log() doesn't work in Safari 6.0 Web Inspector
本文介绍了console.log()在Safari 6.0 Web Inspector中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
console.log('hi');
undefined
6.0中是否有类似的实现?或者我做错了什么?
Is there any similar implementation in 6.0? or Did I do something wrong?
推荐答案
我发现了问题!日志不会出现在交互式控制台(位于底部),而是出现在当前日志窗口中!您可以通过开发>访问它显示错误控制台
或Web Inspector中最右边的源图标。
I found the problem! Logs don't appear in the interactive console (which is located on the bottom), but in the Current Log window instead! You can access it through Develop > Show Error Console
or the rightmost source icon in the Web Inspector.
太奇怪了!是否很难在控制台中获得简单的输出,例如在Ruby中 puts
和 print
?
So strange! Is it that hard to get simple output in the console, like puts
and print
in Ruby?
这篇关于console.log()在Safari 6.0 Web Inspector中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文