2023年12月27日

vue2 自定义插件

摘要: 自定义插件的基本使用: let MyPlugin = {}; MyPlugin.install = function (Vue, options) { // 1. 添加全局方法或 property Vue.myGlobalMethod = function () { // 逻辑... } // 2. 阅读全文

posted @ 2023-12-27 16:17 每天积极向上 阅读(92) 评论(0) 推荐(0) 编辑

导航