首页 > 技术文章 > vue当中设置全局变量的方法
xiaomili 2017-03-21 22:05 原文
1 import fn from 'fn' 2 Vue.prototype.fn = fn; 3 4 调用的时候 5 6 this.fn.way