要将引用的js放到vue的函数中去。例如:a.js中有函数test(),我们要在vue中使用,那么需要在vue的methods中写一个函数 vue_a(){ window.test() } 这样就可以调用a.js中的test函数