小编Zok*_*ora的帖子

为什么Google Chrome会通过jQuery输出不同的console.log()?

当我控制登录jquery对象时,例如.

var s = $("#item");
console.log(s);
Run Code Online (Sandbox Code Playgroud)

我得到这样的东西

[div#item, context: document, selector: "#item", jquery: "1.9.1", constructor: function, init: function…]
Run Code Online (Sandbox Code Playgroud)

我记得之前(一个月前左右),我会得到类似的东西:

 [<div id="item">pas</div>]
Run Code Online (Sandbox Code Playgroud)

这是Chrome本身的变化吗?或者jquery有变化?或者我实际上做了一些让输出看起来不同的东西

我发现第二个输出更容易阅读,我可以将鼠标悬停在此页面上并将其标记在页面上.现在我得到太多的信息,这很难读

jquery google-chrome console.log

14
推荐指数
1
解决办法
2万
查看次数

标签 统计

console.log ×1

google-chrome ×1

jquery ×1