摘要: Vue3中获取this的方式 Vue2中每个组件使用this指向当前组件实例, this上包含全局挂在的内容:路由、状态管理等 Vue3中每个this,想要获取组件实例有两种 获取当前组件实例 获取全局实例 <script setup> import { getCurrentInstance } f 阅读全文
posted @ 2023-04-16 18:28 Felix_Openmind 阅读(306) 评论(0) 推荐(0)
摘要: https://juejin.cn/post/6999687348120190983#heading-7 Vue3 通信使用写法 1. props 用 props 传数据给子组件有两种方法,如下 方法一,setup() 方法写法 // Parent.vue 传送 <child :msg1="msg1 阅读全文
posted @ 2023-04-16 18:06 Felix_Openmind 阅读(133) 评论(0) 推荐(0)
*{cursor: url(https://files-cdn.cnblogs.com/files/morango/fish-cursor.ico),auto;}