console.log() doesn't work in Safari 6.0 Web Inspector

后端 未结 6 1811
野的像风
野的像风 2021-01-07 20:24
console.log(\'hi\');

undefined

Is there any similar implementation in 6.0? or Did I do something wrong?

6条回答
  •  孤街浪徒
    2021-01-07 20:44

    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.

    So strange! Is it that hard to get simple output in the console, like puts and print in Ruby?

提交回复
热议问题