开发者

console.dir(this) not producing any output

I have t开发者_如何学Chis:

<body>
<script>
console.log(this);
console.dir(this);
console.dirxml(this);
</script>
</body>

Why does console.dir(this) not produce any output?


It should show the console object as it would in the DOM panel. But it will pay attention to your settings. Go to the DOM tab panel and click the triangle menu thing and be sure it is showing user properties and user functions. Then try again.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜