console.log上的chrome的jquery元素看起来很奇怪 [英] console.log jquery element on chrome look strange
本文介绍了console.log上的chrome的jquery元素看起来很奇怪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
[< h1>,prevObject:e.fn.e.init [1],context:#document,selector:h1]
$ b如何得到如上所示的结果?
这是命令i使用:
console.log($('h1'));
任何人都可以得到像我一样的结果chrome Version 23.0.1271.64 m?解决方案当然,您正在寻找整个HTML元素 使用
检查属性
或
console.log($('h1')[0]);
[<h1>, prevObject: e.fn.e.init[1], context: #document, selector: "h1"]
How do i get result looks like above?
This is the command i use:
console.log($('h1'));
Can anyone get result like me on chrome Version 23.0.1271.64 m ?解决方案Of course, you are looking for the entire HTML element
Use
console.log($('h1').get(0));
to check propertiesOr
console.log($('h1')[0]);
这篇关于console.log上的chrome的jquery元素看起来很奇怪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文