npm install jquery --save
main.js里引入
import $ from 'jquery'
重点在于下面这句话:
Vue.prototype.$ = $;
将jquery挂载在vue实例上