摘要: 基本类型视频 对象类型视频 2.ref函数 作用: 定义一个响应式的数据 语法: const xxx = ref(initValue) 创建一个包含响应式数据的引用对象(reference对象,简称ref对象)。 JS中操作数据: xxx.value 模板中读取数据: 不需要.value,直接:<d 阅读全文
posted @ 2023-04-17 18:03 垂序葎草 阅读(467) 评论(0) 推荐(0) 编辑
摘要: 视频 二、常用 Composition API 官方文档: https://v3.cn.vuejs.org/guide/composition-api-introduction.html 1.拉开序幕的setup 理解:Vue3.0中一个新的配置项,值为一个函数。 setup是所有Compositi 阅读全文
posted @ 2023-04-17 12:19 垂序葎草 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 视频 1.Chrome网上商店 2.扩展软件,拖动到插件里 阅读全文
posted @ 2023-04-17 11:59 垂序葎草 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 视频 不能用vue2的写法了 #components ##HelloWorld.vue <template> <div class="hello"> <h1>{{ msg }}</h1> <p> For a guide and recipes on how to configure / custom 阅读全文
posted @ 2023-04-17 11:50 垂序葎草 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 使用 vue-cli 创建工程视频 使用 vite 创建工程视频 一、创建Vue3.0工程 1.使用 vue-cli 创建 官方文档:https://cli.vuejs.org/zh/guide/creating-a-project.html#vue-create ## 查看@vue/cli版本,确 阅读全文
posted @ 2023-04-17 11:00 垂序葎草 阅读(33) 评论(0) 推荐(0) 编辑