摘要: 1. 全局注册一个方法(函数) 三步搞定 在plugins文件夹下新建一个js,如test.js 然后在里面写入如下 /** * 写你要的方法名 * 然后注册进Vue */ import Vue from 'vue' var test= { install(Vue){ Vue.prototype.t 阅读全文
posted @ 2020-07-01 10:52 爱上大树的小猪 阅读(309) 评论(0) 推荐(0) 编辑