JQ:
: parent()
parents()
parentsUntil(selector)
children()
find()
siblings()
next()
nextAll()
nextUntil()
prev()
prevAll()
prevUntil()
: $(":input")
$(":text")
$(":radio")
$(":checkbox")
$(":password")
$(":first")
$(":last")
$(":even")
$(":bth-child(n)")
$(":gt")
I want to traverse the document tree and get the nodes quickly in vue only by using the native method of JS, which is clumsy compared with JQ, and its flexibility and simplicity are not very practical.
ask the gods what to do when they need to traverse the document tree and select a collection of node objects when developing projects with VUE. I am really confused when I first came into contact with VUE,. Please give me your advice.
my own idea: is it by binding instructions such as V-bind to a node, and then using data to drive it?