开发者

console.dir(this) not producing any output

开发者 https://www.devze.com 2023-02-01 22:17 出处:网络
I have t开发者_如何学Chis: <body> <script> console.log(this); console.dir(this); console.dirxml(this);

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

精彩评论

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

关注公众号