摘要:
方法一:使用Vue.prototype //在mian.js中写入函数 Vue.prototype.getToken = function (){ ... } //在所有组件里可调用函数 this.getToken(); 方法二:使用exports.install+Vue.prototype // 写好自己需要的fun.js文件 exports.install = functio... 阅读全文
posted @ 2018-12-04 10:05
conglvse
阅读(22885)
评论(1)
推荐(2)

浙公网安备 33010602011771号