vue2 自定义插件
摘要:自定义插件的基本使用: let MyPlugin = {}; MyPlugin.install = function (Vue, options) { // 1. 添加全局方法或 property Vue.myGlobalMethod = function () { // 逻辑... } // 2.
阅读全文
posted @ 2023-12-27 16:17
posted @ 2023-12-27 16:17
posted @ 2023-12-03 14:01