vue--自定义全局方法,在组件里面使用

在main.js里进行全局注册this   Vue.prototype.funcName = function (){}   在全部组件里可调用spa   this.funcName();
相关文章
相关标签/搜索