当前位置: 首页 > news >正文

客户网站回访济南百度做网站

客户网站回访,济南百度做网站,正规的男科医院排名,深圳百度关键阶段一:基础入门 (1-2周) 1.1 环境准备 # 安装 Node.js (推荐 18+ 版本) # 安装 Vue CLI 或使用 Vite npm create vue@latest my-vue-app cd my-vue-app npm install npm run dev1.2 Vue 3 核心概念 响应式系统:ref(), reactive(), computed() 组合式 API:setup() 函数 模…阶段一:基础入门 (1-2周) 1.1 环境准备 # 安装 Node.js (推荐 18+ 版本) # 安装 Vue CLI 或使用 Vite npm create vue@latest my-vue-app cd my-vue-app npm install npm run dev1.2 Vue 3 核心概念 响应式系统:ref(), reactive(), computed() 组合式 API:setup() 函数 模板语法:插值、指令、事件处理 组件基础:组件定义、Props、Emits templatedivh1{{ title }}/h1button @click="increment"Count: {{ count }}/button/div /templatescript setup lang="ts" import { ref, computed } from 'vue'// 响应式数据 const count = ref(0) const title = ref('Vue 3 App')// 计算属性 const doubleCount = computed(() = count.value * 2)// 方法 const increment = () = {count.value++ } /script1.3 学习资源 Vue 3 官方文档 Vue 3 教程 在线练习:Vue SFC Playground 阶段二:组件开发 (2-3周) 2.1 组件通信 !-- 父组件 -- templateChildComponent :message="parentMessage" @update="handleUpdate"/ /templatescript setup lang="ts" import { ref } from 'vue' import ChildComponent from './ChildComponent.vue'const parentMessage = ref('Hello from parent')const handleUpdate = (newMessage: string) = {parentMessage.value = newMessage } /script!-- 子组件 -- templatedivp{{ message }}/pbutton @click="updateParent"Update Parent/button/div /templatescript setup lang="ts" interface Props {message: string }interface Emits {(e: 'update', value: string): void }const props = definePropsProps() const emit = defineEmitsEmits()const updateParent = () = {emit('update', 'Updated from child') } /script2.2 生命周期钩子 script setup lang="ts" import { onMounted, onUnmounted, onUpdated } from 'vue'// 组件挂载后 onMounted(() = {console.log('组件已挂载') })// 组件更新后 onUpdated(() = {console.log('组件已更新') })// 组件卸载前 onUnmounted(() = {console.log('组件即将卸载') }) /script2.3 插槽 (Slots) !-- 父组件 -- templateCardtemplate #headerh2卡片标题/h2/templatep卡片内容/ptemplate #footerbutton确定/button/template/Card /template!-- 子组件 Card.vue -- templatediv class="card"headerslot name="header"/slot/headermainslot/slot/mainfooterslot name="footer"/slot/footer/div /template阶段三:状态管理 (1-2周) 3.1 Pinia 状态管理 // stores/counter.ts import { defineStore } from 'pinia'export const useCounterStore = defineStore('counter', () = {const count = ref(0)const doubleCount = computed(() = count.value * 2)const increment = () = count.value++const decrement = () = count.value--return { count, doubleCount, increment, decrement } })3.2 在组件中使用 templatedivpCount: {{ counter.count }}/ppDouble: {{ counter.doubleCount }}/pbutton @click="counter.increment"+1/button/div /templatescript setup lang="ts" import { useCounterStore } from '@/stores/counter'const counter = useCounterStore() /script阶段四:路由管理 (1周) 4.1 Vue Router 4 // router/index.ts import { createRouter, createWebHistory } from 'vue-router'const
http://www.zqtcl.cn/news/887602/

相关文章:

  • 网站建设哪几家好一些打开浏览器历史记录
  • 公司里面有人员增减要去哪个网站做登记网页开发报价单
  • 网站设计的公司运营接单百度搜索引擎首页
  • 最专业的做网站公司有哪些成都龙泉建设有限公司网站
  • 云南省玉溪市建设局官方网站wordpress 迁移 空白
  • 网站空间和数据库多个织梦dedecms网站怎么做站群
  • 网站模块插件是怎么做的个人建设网站流程图
  • 作品展示的网站建设网站方案
  • 整站优化哪家专业网站漏洞解决办法
  • 怎么给自己的网站做扫描码南宁seo排名外包
  • 网站的服务器在哪里怎么建设网站啊
  • 山东做网站三五网站备案怎样提交到管局
  • 自己如何做网站教程中山企业网站推广公司
  • 网站每年费用本地同城服务平台
  • 暗网网站有那些青岛网站设计公司推荐
  • 营业执照咋做网等网站遂宁网站建设公司哪家好
  • 湖南平台网站建设找哪家重庆网站建设营销
  • wordpress搭建企业网站小型网络架构
  • 淘宝联盟链接的网站怎么做培训网站排名
  • 上海高端网站建设定制大连开发区邮编
  • 手机网站公司免费crm软件下载
  • 家居企业网站建设平台周口seo
  • 扁平化网站建设公司广告推广方案
  • 高端企业网站 程序北京做网站费用
  • net做网站遇到的问题搜索引擎优化方法
  • 专业的设计网站有哪些网站数据库做好了 怎么做网页
  • 鄂州网站建设公司网站制作过程教程
  • 网站建设课程小结二建证考试需要什么条件
  • 比较好的商城网站设计品牌策划案
  • 自适应科技公司网站模板做网站的公司深