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
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9934a-1739.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9934a-1739.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?