随笔分类 - 前端
vue3组件通信方式
摘要:
使用props通信 父组件向子组件通信 父组件 <script setup lang="ts"> import ChildProps from "@/view/props/ChildProps.vue"; import { ref } from "vue"; let age = ref(18); <

解构的简单使用
摘要:将name,age提取出来,剩余的放到新对象中 student={ "name": "Kang", "age":19, "location":{ "address": "阿伯", "city": "相关", "state": "a" }, "website": "www.kang" } const