Vue中如何引入jquery 看了网上其他人的教程,没有一个有用的;经过摸索,提供一条最简便的方法。 1.项目安装jquery npm install jquery 2.在main.js中注册 import $ from 'jquery'; window.jQuery = $; window.$ = $;