Can vue-cli introduce third-party js libraries, such as JQ

can you only write native js code with vue-cli? why did I introduce JQ to report all kinds of errors? no, no, no.
I introduced JQ into mian.js

import jq from". / assets/js/jquery.min.js"

report that jq is not defined

Feb.26,2022

of course, but you are wrong to write this. First, you have to install it. You can't import it statically

.
  

you already use vue, so forget about using jq to operate dom

Menu