From e3e04ebe49dd26e0a556128a5822260e99c99459 Mon Sep 17 00:00:00 2001 From: jaywcjlove Date: Fri, 18 Nov 2022 02:53:43 +0000 Subject: [PATCH] doc: upate vue2.md (#122) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit v-for和v-if不推荐一起使用,效率较低.推荐使用computed计算属性. 当两者一起使用时v-for具有较高的优先级. 03d4aedc3df6f65ec677bb887a6a4404b3cddf08 --- CONTRIBUTORS.svg | 46 ++++++++++++++++++++++++---------------------- docs/vue2.html | 1 + index.html | 8 ++++---- 3 files changed, 29 insertions(+), 26 deletions(-) diff --git a/CONTRIBUTORS.svg b/CONTRIBUTORS.svg index 6fc77200..90d5cabb 100644 --- a/CONTRIBUTORS.svg +++ b/CONTRIBUTORS.svg @@ -26,49 +26,51 @@ + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + \ No newline at end of file diff --git a/docs/vue2.html b/docs/vue2.html index a0711e38..ff722008 100644 --- a/docs/vue2.html +++ b/docs/vue2.html @@ -467,6 +467,7 @@ </div>

v-for/v-if

+

v-for和v-if不推荐一起使用

<li
   v-for="todo in todos"
   v-if="!todo.isComplete"
diff --git a/index.html b/index.html
index afb5bce6..98fd2204 100644
--- a/index.html
+++ b/index.html
@@ -458,12 +458,12 @@
 
   fw_qaq
 
-
-  expoli
-
 
   mofelee
 
+
+  expoli
+
 
   partoneplay
 
@@ -562,7 +562,7 @@
 
 

如果你有资源,可以很方便部署 web 版,这非常简单,只需要克隆 gh-pages 分支代码到你的静态服务就可以了,还可以使用 docker 快捷部署 web 版。

-