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

后端 未结 6 1823
野的像风
野的像风 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:33

    I recently came across this post because I was having a similar issue with Safari 14. I use Grammarly for Safari and it creates another frame where the requests are sent. This may happen with other extensions as well.

    Safari should select the correct frame by default, but if it does not then you will not see the console logs. If this is happening, there will be a dropdown at the lower right corner of the console window. If you select the website frame the logs will start appearing.

    Image of dropdown

提交回复
热议问题