随笔分类 -  前端

摘要:vue3组件通信方式使用props通信 父组件向子组件通信 父组件 <script setup lang="ts"> import ChildProps from "@/view/props/ChildProps.vue"; import { ref } from "vue"; let age = ref(18); < 阅读全文
posted @ 2023-05-20 00:09 Kang_kin 阅读(95) 评论(0) 推荐(0)
摘要:将name,age提取出来,剩余的放到新对象中 student={ "name": "Kang", "age":19, "location":{ "address": "阿伯", "city": "相关", "state": "a" }, "website": "www.kang" } const 阅读全文
posted @ 2023-05-18 17:39 Kang_kin 阅读(17) 评论(0) 推荐(0)