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
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
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