摘要: 首先在utils文件夹下创建一个utils.js文件,这个文件是公用方法文件。 然后在该文件中抛出你的方法如下: 之后在main.js文件中全局引入。 import utils from "./utils/utils"; Vue.prototype.utils = utils; 最后在你要调用方法的 阅读全文
posted @ 2020-09-27 15:26 web~Song 阅读(621) 评论(0) 推荐(0) 编辑