引入前提数据介绍:"webpack": "4.16.5"

1.npm install jquery --save

2.在webpack.base.conf.js里面的plugins:[]添加红框里面的内容

vue-element-admin的jquery引入

 3.在“router/index.js”里面引入:import $ from 'jquery'

vue-element-admin的jquery引入

4.在APP.vue里面输入测试代码,如果弹出效果:123就是引入成功了

vue-element-admin的jquery引入

相关文章:

  • 2021-07-13
  • 2021-05-08
  • 2021-08-16
  • 2022-02-09
  • 2021-09-22
  • 2021-05-31
  • 2021-09-16
  • 2021-11-03
猜你喜欢
  • 2021-10-06
  • 2021-10-23
  • 2021-12-28
  • 2021-12-22
  • 2022-01-23
  • 2022-01-22
相关资源
相似解决方案