From 510c61c1cbf6dfa4739b33db0d38c5fcf564a6d3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E5=8B=87?= <1361162012@qq.com>
Date: Thu, 27 May 2021 15:05:44 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
"2020-05-25\345\210\235\350\257\206vue.md" | 40 ++++++
...66\345\214\226\346\236\204\345\273\272.md" | 121 ++++++++++++++++++
2 files changed, 161 insertions(+)
create mode 100644 "2020-05-25\345\210\235\350\257\206vue.md"
create mode 100644 "2020-05-26\347\273\204\344\273\266\345\214\226\346\236\204\345\273\272.md"
diff --git "a/2020-05-25\345\210\235\350\257\206vue.md" "b/2020-05-25\345\210\235\350\257\206vue.md"
new file mode 100644
index 0000000..3fda284
--- /dev/null
+++ "b/2020-05-25\345\210\235\350\257\206vue.md"
@@ -0,0 +1,40 @@
+# 初识vue
+1. vue.js是什么
+vue是一套构建用户界面的渐进式框架,与其它大型框架不同的是,Vue 被设计为可以自底向上逐层应用。Vue 的核心库只关注视图层,不仅易于上手,还便于与第三方库或既有项目整合。另一方面,当与现代化的工具链以及各种支持类库结合使用时,Vue 也完全能够为复杂的单页应用提供驱动。
+2. 安装vue
+CDN
++ 对于制作原型或学习,你可以这样使用最新版本:
+```
+
+```
++ 对于生产环境,我们推荐链接到一个明确的版本号和构建文件,以避免新版本造成的不可预期的破坏:
+```
+
+```
+3. Vue.js 的核心是一个允许采用简洁的模板语法来声明式地将数据渲染进 DOM 的系统:
+```
+
+
+ {{look}}
+
+
+ {{here}}
+
+
你愁啥?瞅的到吗?
+
+
+
+```
diff --git "a/2020-05-26\347\273\204\344\273\266\345\214\226\346\236\204\345\273\272.md" "b/2020-05-26\347\273\204\344\273\266\345\214\226\346\236\204\345\273\272.md"
new file mode 100644
index 0000000..ce96e4a
--- /dev/null
+++ "b/2020-05-26\347\273\204\344\273\266\345\214\226\346\236\204\345\273\272.md"
@@ -0,0 +1,121 @@
+# 条件与循环
+1. 可以通过v-if,v-else来对条件进行判断,如果为true则执行v-if,反之则执行v-else
+```
+
+
+ 你是一个大帅逼
+
+
+ 你是一个大傻逼
+
+
+
+```
++ 注意:修改coolboy来修改获得的文本,不会删除原本的占位标签,内存还是占用原本的大小
+
+2. 可以通过v-for来对一个数组的数据循环操作
+
+```
+
+
+ -
+ {{todo.text}}
+
+
+
+
+```
+
+# 处理用户输入
+1. v-model可以用来实现表单和应用状态的双向绑定
+```
+
+
+```
++ 在网页修改input的时候也会让p中所访问的username自动变化,实现二者双向绑定
+
+# 组件化应用构建
+1. 可以在vue中注册一个组件
+```
+ Vue.component('todo-item', {
+ props: ['item'],
+ template: '{{toDos.taskName}}'
+ });
+ let arrs = new Vue({
+ el: "#arr",
+ data() {
+ return {
+ toDos: [{
+ taskName: '小一'
+ }, {
+ taskName: '小二'
+ }]
+ }
+ }
+ })
+```
+2. 然后再html中进行使用
+```
+
+```
+
--
Gitee
From aa0495217349d138531df9dd20c41f25803b28c4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E5=8B=87?= <1361162012@qq.com>
Date: Thu, 27 May 2021 15:07:47 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BB=84=E4=BB=B6?=
=?UTF-8?q?=E6=A8=A1=E6=9D=BF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...\273\204\344\273\266\345\214\226\346\236\204\345\273\272.md" | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git "a/2020-05-26\347\273\204\344\273\266\345\214\226\346\236\204\345\273\272.md" "b/2020-05-26\347\273\204\344\273\266\345\214\226\346\236\204\345\273\272.md"
index ce96e4a..c3e5897 100644
--- "a/2020-05-26\347\273\204\344\273\266\345\214\226\346\236\204\345\273\272.md"
+++ "b/2020-05-26\347\273\204\344\273\266\345\214\226\346\236\204\345\273\272.md"
@@ -95,7 +95,7 @@
```
Vue.component('todo-item', {
props: ['item'],
- template: '{{toDos.taskName}}'
+ template: '{{item.taskName}}'
});
let arrs = new Vue({
el: "#arr",
--
Gitee