摘要: 在vue组件使用中,要想使用开发的组件,则必须先进行注册, vue组件注册有2种方式,全局注册和局部注册 什么是全局注册? 可以使用 Vue 应用实例的 .component() 方法,让组件在当前 Vue 应用中全局可用。 import { createApp } from 'vue' const 阅读全文
posted @ 2023-02-27 14:55 方达达 阅读(2) 评论(0) 推荐(0) 编辑