What makes a jQuery object show up as an array in Chrome's Developer Tools?

前端 未结 2 1969
旧时难觅i
旧时难觅i 2020-11-27 22:48

I\'m wondering how it\'s possible that jQuery objects show up as an array in the console log of Developer Tools in Chrome.

E.g. if I execute $(\'\')

2条回答
  •  余生分开走
    2020-11-27 23:21

    You probably know this, but console.log is not displaying passed content "as is", it is trying to be "smart" and does some post processing. If you want to see original object "as is", there is console.dir method.

提交回复
热议问题