vue项目中使用 web worker 开启多线程 1:安装 npm i -S 'vue-worker' 2: main.js import VueWorker from 'vue-worker' Vue.use(VueWorker) 3:App.vue