The question about whether jquery can be used in the part of frequently manipulating nodes in the vue project.

The

project is a front end built using vue.js. Originally, it was intended to be a quiet backstage, but as a result, a little bit of moth was accidentally asked to make a page, similar to the custom configuration h5 template of the rabbit exhibition (various operations of dragging nodes). Now it is very puzzling whether this can be written in jquery

.
Mar.02,2021

jquery is just a framework, just encapsulating some functions, all based on js, why can not be used to do this


you can also use jq, in jq,vue but if jq uses very few places, it is not necessary, after all, jq is quite big. And jq mainly operates dom, while vue is data-based, so you may find it strange


Yes but not recommended

vue also provides methods for operating DOM. You can learn about ref : https://cn.vuejs.org/v2/api/-sharpref

.

get

with $refs
Menu