1.写公共js 2.main.js引入公共js 3.在组件中用this.common.方法名 引用 转载于:https://www.cnblogs.com/duanzhenzhen/p/10594809.html