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.
精彩评论