Vue学习
文章平均质量分 52
King Rat
I am the Rat King
展开
-
【vue3】ref , reactive ,toRef ,toRefs 使用和理解
【vue3】ref , reactive ,toRef ,toRefs 使用和理解,使用`ref` 和 `reactive` 实现双向数据绑定原创 2023-02-24 16:58:10 · 838 阅读 · 0 评论 -
vue报错:error Component name “School“ should always be multi-word vue/multi-word-component-names
错误详细信息:error Component name "School" should always be multi-word vue/multi-word-component-names原因:语法检查时把命名不规范当作语法错误。解决办法:关闭语法检查在vue.config.js中加入原创 2022-06-18 17:55:23 · 489 阅读 · 0 评论 -
Vue脚手架(安装和使用)
vue脚手架(VUE cli) 安装使用步骤 1.前提配置好npm,下载慢最好使用淘宝镜像 2.全局安装vuecli npm install -g @vue/cli 3.切换到创建项目的目录,然后使用命令创建 vue create xxxx 4.启动项目 cd 项目名称 npm原创 2022-06-18 13:16:55 · 135 阅读 · 0 评论 -
Vue组件化编程
组件组件创基使用实例:组件的理解 组件本质是名为VueComponent的构造函数,是Vue.extend生成的 每次使用 组件标签时都是new 构造函数 每次Vue.extend都会生成一个全新的VueComponent new Vue()时,this 指向Vue实例 Vue.extend时,this指向VueComponent 组件是可复用的Vue实例,区别,有无el组件嵌套 注意:要先创建组件,再注册,不然会原创 2022-06-17 20:43:43 · 57 阅读 · 0 评论