vue 自定义全局方法,在组件里面的使用介绍 在main.js里进行全局注册Vue.prototype.funcName=function(){}在所有组件里可调用this.funcName();以上这 vue自定义全局组件