自定义公用js 创建公用的js 然后再main.js中 import 文件名1 from './文件名.js' 引入,并全局 Vue.prototype.文件名3= 文件名1 使用 <span>{{comm.coll}}</span>