摘要: 尚硅谷视频链接 axios 了解了一下axios的语法 import axios from 'axios' export default function () { let dogList = reactive( [ 'https://images.dog.ceo/breeds/pembroke/n 阅读全文
posted @ 2024-03-20 21:06 ayubene 阅读(25) 评论(0) 推荐(0)
摘要: 官方教程链接 ref标签(模板引用) 手动操作 DOM,使用模板引用,就是指向模板中一个 DOM 元素的 ref <p ref="pElementRef">hello</p> 要访问该引用,我们需要声明一个同名的 ref: const pElementRef = ref(null) 生命周期 详见前 阅读全文
posted @ 2024-03-20 17:27 ayubene 阅读(16) 评论(0) 推荐(0)
摘要: 官方教程链接 Class 与 Style 绑定 Vue 专门为 class 和 style 的 v-bind 用法提供了特殊的功能增强 <span :class="{done:item.done}">{{ item.text }}</span> 如果item.done是true,以上代码实际为 <s 阅读全文
posted @ 2024-03-20 17:12 ayubene 阅读(46) 评论(0) 推荐(0)