From 0184ae76b3d11b40af9eed19020ea8352a46d163 Mon Sep 17 00:00:00 2001 From: roger Date: Wed, 4 Jan 2023 18:02:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E4=B9=A0v-text,=20v-html,=20v-cloak?= =?UTF-8?q?=20=E5=9F=BA=E6=9C=AC=E5=91=BD=E4=BB=A4=E5=92=8C=E8=BF=87?= =?UTF-8?q?=E6=BB=A4=E5=99=A8=E7=9A=84=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 01_初识Vue/基础模板.html | 26 ++++++++++++ 14_过滤器/过滤器.html | 60 +++++++++++++++++++++++++++ 15_内置指令/1.v-text_指令.html | 36 ++++++++++++++++ 15_内置指令/2.v-html_指令.html | 39 +++++++++++++++++ 15_内置指令/3.v-cloak_指令.html | 39 +++++++++++++++++ 5 files changed, 200 insertions(+) create mode 100644 01_初识Vue/基础模板.html create mode 100644 14_过滤器/过滤器.html create mode 100644 15_内置指令/1.v-text_指令.html create mode 100644 15_内置指令/2.v-html_指令.html create mode 100644 15_内置指令/3.v-cloak_指令.html diff --git a/01_初识Vue/基础模板.html b/01_初识Vue/基础模板.html new file mode 100644 index 0000000..56b4a19 --- /dev/null +++ b/01_初识Vue/基础模板.html @@ -0,0 +1,26 @@ + + + + + xxxx + + + +
+

Hello, {{name}}, {{address}}, {{Date.now()}}

+
+ + + + \ No newline at end of file diff --git a/14_过滤器/过滤器.html b/14_过滤器/过滤器.html new file mode 100644 index 0000000..7a83c74 --- /dev/null +++ b/14_过滤器/过滤器.html @@ -0,0 +1,60 @@ + + + + + 过滤器 + + + + +
+

显示格式化后的时间

+ +

计算属性实现:{{formatDatetime}}

+ +

方法实现:{{fmtDatetime()}}

+ +

过滤器实现1:{{time | formatDt}}

+ +

过滤器实现2:{{time | formatDt('YYYY_MM_DD')}}

+ +

多过滤器实现:{{time | formatDt('YYYY_MM_DD') | yearSlice}}

+ +

全局过滤器:{{time | formatDt('YYYY_MM_DD') | globalSlice}}

+ +

绑定时使用过滤器:F12

+
+ + + + \ No newline at end of file diff --git a/15_内置指令/1.v-text_指令.html b/15_内置指令/1.v-text_指令.html new file mode 100644 index 0000000..34365d0 --- /dev/null +++ b/15_内置指令/1.v-text_指令.html @@ -0,0 +1,36 @@ + + + + + v-text + + + + +
+

Hello, {{name}}, {{address}}, {{Date.now()}}

+

+
+ + + + \ No newline at end of file diff --git a/15_内置指令/2.v-html_指令.html b/15_内置指令/2.v-html_指令.html new file mode 100644 index 0000000..98dd413 --- /dev/null +++ b/15_内置指令/2.v-html_指令.html @@ -0,0 +1,39 @@ + + + + + v-html + + + + +
+

Hello, {{name}}, {{address}}, {{Date.now()}}

+

+
+
+ + + + \ No newline at end of file diff --git a/15_内置指令/3.v-cloak_指令.html b/15_内置指令/3.v-cloak_指令.html new file mode 100644 index 0000000..beed676 --- /dev/null +++ b/15_内置指令/3.v-cloak_指令.html @@ -0,0 +1,39 @@ + + + + + v-cloak + + + + +
+

{{name}}

+
+ + + + + \ No newline at end of file