vue 引用公共方法(例子:截取字符串固定字数,其余显示...)

1.写公共js

2.main.js引入公共js

3.在组件中用this.common.方法名 引用

原文地址:https://www.cnblogs.com/duanzhenzhen/p/10594809.html