How to print, view the properties of element nodes, Google Chrome, etc.

Whether it is the element node obtained by ref in vue, or the node obtained by native, when we want to view the properties of the element node, we can view it through these three methods:

  1. package array: console.log([dom])

  1. Package object: console.log({dom})

  1. Use console.dir to print, you can print out all the properties and property values ​​of the object.

Guess you like

Origin blog.csdn.net/m0_49623851/article/details/129183081