vue当中设置全局变量的方法

import fn from 'fn'
Vue.prototype.fn = fn;

调用的时候

this.fn.way

 

posted @ 2017-03-21 18:25  无情码字员  阅读(6550)  评论(1编辑  收藏  举报