chrome上的console.log jquery元素看起来很奇怪

Nut*_*unG 5 jquery google-chrome

 [<h1>, prevObject: e.fn.e.init[1], context: #document, selector: "h1"]
Run Code Online (Sandbox Code Playgroud)

我如何获得上面的结果?

这是我使用的命令:console.log($('h1')); 任何人都可以在Chrome版本23.0.1271.64 m上获得像我一样的结果吗?

sde*_*ont 3

当然,您正在寻找整个 HTML 元素

用于console.log($('h1').get(0));检查属性

或者console.log($('h1')[0]);