From 2dc445a37459e19f378842a749272c73b9fb9044 Mon Sep 17 00:00:00 2001
From: yb <1728066681@qq.com>
Date: Wed, 26 May 2021 17:37:56 +0800
Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E6=AC=A1=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Vue - 2021.05.25.md | 107 ++++++++++++++++++++++++++++++++++++++++++++
Vue - 2021.05.26.md | 103 ++++++++++++++++++++++++++++++++++++++++++
Vue/index.html | 89 ++++++++++++++++++++++++++++++++++++
3 files changed, 299 insertions(+)
create mode 100644 Vue - 2021.05.25.md
create mode 100644 Vue - 2021.05.26.md
create mode 100644 Vue/index.html
diff --git a/Vue - 2021.05.25.md b/Vue - 2021.05.25.md
new file mode 100644
index 0000000..4446d74
--- /dev/null
+++ b/Vue - 2021.05.25.md
@@ -0,0 +1,107 @@
+## Vue.js 第一节课
+
++ Vue 类似于View 构建用户界面的渐进式框架
+
++ Vue可以自底想上逐层应用,Vue 的核心库只关注视图层
+
+## 声明式渲染
+
+```
+
+
{{site}}
+ {{url}}
+ {{alexa}}
+ {{name}}
+ {{details()}}
+
+
+
+```
+
++ 这意味着我们接下来的改动全部在以上指定的 div 内,div 外部不受影响。
+
++ 接下来我们看看如何定义数据对象。
+
++ data 用于定义属性,实例中有三个属性分别为:site、url、alexa、name。
+
++ methods 用于定义的函数,可以通过 return 来返回函数值。
+
++ {{ }} 用于输出对象属性和函数返回值。
+
+结果:----------------
+
+
+```
+
+
+
+ 可以呀 小孩子
+
+
+
+
+
+
+
+ 发动机
+
+
+
+
+
+
+```
+```
+鼠标停几秒呀,查看此处动态绑定的信息
+```
+
+注意:v-bind attribute 被称为指令,指令带有前缀 v-,以表示它们是 Vue 提供的特殊 attribute。
+
+## 条件与循环
+```
+
+
+ -
+ {{ todo.text }}
+
+
+
+
+
+```
\ No newline at end of file
diff --git a/Vue - 2021.05.26.md b/Vue - 2021.05.26.md
new file mode 100644
index 0000000..428c137
--- /dev/null
+++ b/Vue - 2021.05.26.md
@@ -0,0 +1,103 @@
+## Vue.js 第二节课
+
+## 条件循环
+
++ 循环使用 v-for 指令。
+
++ v-for 指令需要以 site in sites 形式的特殊语法, sites 是源数据数组并且 site 是数组元素迭代的别名。
+
++ v-for 可以绑定数据到数组来渲染一个列表:
+
+```
+
+
+
+
+```
+
+## 处理用户输入
+
++ v-on 指令添加一个事件监听器
+
++ v-model 指令,它能轻松实现表单输入和应用状态之间的双向绑定
+```
+
+
+```
+```
+
+```
diff --git a/Vue/index.html b/Vue/index.html
new file mode 100644
index 0000000..11ed837
--- /dev/null
+++ b/Vue/index.html
@@ -0,0 +1,89 @@
+
+
+
+
+
+
+ Document
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
--
Gitee