From f3b37a4e32fe0dfb53778c5d2f850e1ebb7d9c55 Mon Sep 17 00:00:00 2001 From: unknown <2297088601@qq.com> Date: Wed, 26 May 2021 17:27:55 +0800 Subject: [PATCH] =?UTF-8?q?5=E6=9C=8826=E6=97=A5=E7=AC=94=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...25\347\254\254\344\270\200\350\257\276.md" | 47 +++++++ .../1.png" | Bin 0 -> 1102 bytes .../2.png" | Bin 0 -> 10522 bytes ...14\347\273\204\344\273\266\345\214\226.md" | 124 ++++++++++++++++++ 4 files changed, 171 insertions(+) create mode 100644 "\351\273\204\345\230\211\351\222\260/2021-5-25\347\254\254\344\270\200\350\257\276.md" create mode 100644 "\351\273\204\345\230\211\351\222\260/img/\346\235\241\344\273\266\344\270\216\345\276\252\347\216\257\351\202\243\344\270\200\350\257\276\347\232\204/1.png" create mode 100644 "\351\273\204\345\230\211\351\222\260/img/\346\235\241\344\273\266\344\270\216\345\276\252\347\216\257\351\202\243\344\270\200\350\257\276\347\232\204/2.png" create mode 100644 "\351\273\204\345\230\211\351\222\260/\346\235\241\344\273\266\345\276\252\347\216\257\357\274\214\345\244\204\347\220\206\347\224\250\346\210\267\350\276\223\345\205\245\357\274\214\347\273\204\344\273\266\345\214\226.md" diff --git "a/\351\273\204\345\230\211\351\222\260/2021-5-25\347\254\254\344\270\200\350\257\276.md" "b/\351\273\204\345\230\211\351\222\260/2021-5-25\347\254\254\344\270\200\350\257\276.md" new file mode 100644 index 0000000..3bc17b8 --- /dev/null +++ "b/\351\273\204\345\230\211\351\222\260/2021-5-25\347\254\254\344\270\200\350\257\276.md" @@ -0,0 +1,47 @@ +## Vue.js + +Vue是渐进式框架,使用MVVM模式(Model View ViewModel) + +三大框架:Vue react angular2 + +Vue的三个特点: 双向绑定 组件化 单文件组件 + ++ 第一个Vue应用 +``` + +
+ {{msg}} +
+ + + + + +``` + ++ 使用v-bind指令 +``` +
+ + Nihao + +
+ + + + +``` diff --git "a/\351\273\204\345\230\211\351\222\260/img/\346\235\241\344\273\266\344\270\216\345\276\252\347\216\257\351\202\243\344\270\200\350\257\276\347\232\204/1.png" "b/\351\273\204\345\230\211\351\222\260/img/\346\235\241\344\273\266\344\270\216\345\276\252\347\216\257\351\202\243\344\270\200\350\257\276\347\232\204/1.png" new file mode 100644 index 0000000000000000000000000000000000000000..5797f1d44636af813c4dfb5b5231bf1868eac054 GIT binary patch literal 1102 zcmeAS@N?(olHy`uVBq!ia0y~yVB`d{9XObPWSf?#GLYgd@Q5sCVBk9f!i-b3`J@>b zSQtEA978H@y`2+X^vFPf!E*8H8pY}BABB9}KUMh#`$_iWCw?`qooJ%0%$lTd_b7Y! zmJEfk`I_m8)hGRK|d&3`1H zUVgtt^Y>ll>Fe%=YnCL4DPP>1V|b9a!peM->y;}9i<1QxzkI)M#sjuJ8>EYmn*J}Y ziHh%E>RG+2GIP^vi#rX^@8mz(VVJw`wrj`faDAgX$t`c+rXS$_!E72j;mfPGC++XM z@0{*qY|@ArsL=MK4i|97q6F2Bwl&z4pw249Oi zE_+x&c3Wz0P49KSOSxN%uN721pY!m6hxwoW&ayi<{yHhgm`|&9opeYg;GXzj?I|~( zpEzl`q2k3$)?<0E=N7jaTLF#U|LWMe<*Pr|DHmxjj4h6JK4P+x?L)A6jA3wio>IB~ z+ErQkO8f1iy8jd(J#(efH*9b5xdJzkH45gBwp#Da6IuEx`R;_)-W~c}(uMK+;`aMY z;*_eN_TXJQ@AC3Zjhb@$62Co##?_@DbPS z)JbJ|9ehTSi_b+KehG9~bMhU5`kk`oQ+gj?-l6zvTA9G@g=zuqp3^{7JU`_Tuf#E&GkO%zkoE z^+H>eZUSgVQ{dpPl^uDJp&U%S%_I53x>9RGIbb z+J3pae>1N0t=IVE!qXsqQq{$tCBZlH@hY|5nuQiy?xx5qPv8JbR?m;+egEoMRL+s$ zmth}{oJ=>*W%aK)>Aom)ZR?lM7CphMy_NirFzgVV^5${K+o_U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H5DMMBVHDfRg%TU zJG$yQcu2m^XSI0+j+0>@zzd}%BZ%!=C3GCSnEtPkJD0HFC5%?96hS>urs^^}^Qx=J zM6^=hF^*QeHpJwW6~Z=jGT(v71?O_3fB;q*IRQ^Xsi>WYea7&a--2=^qe}`6R1y7S zWA2rQa_3><$*7hDJfuc2(5k!|W;fTSh|@C~b1@0;KscM(M27%jYQh=XFip`>w}H@* zf?Vka$3iwx%xH*{sDb8{ACl=a%aF>Qfi9^|k!=*fX;!(Iyoy6B{5u&0GxNA-R#rL? zNi9(=)loNx50>Vz1M#7!7(NploH!+eo^A_PltJ?zZQ)<^S(q5PfXMs8SRHbtR5S_V zQch0zE1F5`(&2BvKolY`hH*55&>{1Y?g!HF?mF8CKOkMTNyvMTBb@?q4U$i{edjB` ziUS}a3#zB<Yrrg|OImM;UyFA{WS?TSWz)hJdAcp`IO4fq zv90Z`$RN7VXc)qdU$g1lR#{nkX?}%C*+UCQ_x934lP&q8Zx!}|q-pXu-|Y+^aG5MF z8Y-2S)ExiB{MXC9|Ly4=@cn;Y?ty*%k9U9IRoMS*1ka=Xuf~)2cqc=G lCr1DAZ1ALUtM8bA;K*Q$w}-$7Ja#;%B(ElyBV+vGzW|QgGY0?w literal 0 HcmV?d00001 diff --git "a/\351\273\204\345\230\211\351\222\260/\346\235\241\344\273\266\345\276\252\347\216\257\357\274\214\345\244\204\347\220\206\347\224\250\346\210\267\350\276\223\345\205\245\357\274\214\347\273\204\344\273\266\345\214\226.md" "b/\351\273\204\345\230\211\351\222\260/\346\235\241\344\273\266\345\276\252\347\216\257\357\274\214\345\244\204\347\220\206\347\224\250\346\210\267\350\276\223\345\205\245\357\274\214\347\273\204\344\273\266\345\214\226.md" new file mode 100644 index 0000000..f4e71b2 --- /dev/null +++ "b/\351\273\204\345\230\211\351\222\260/\346\235\241\344\273\266\345\276\252\347\216\257\357\274\214\345\244\204\347\220\206\347\224\250\346\210\267\350\276\223\345\205\245\357\274\214\347\273\204\344\273\266\345\214\226.md" @@ -0,0 +1,124 @@ +## 2021-5-26 + +### 条件与循环 + ++ v-if + +在控制台输入app.haha = false时,“nihao”消失 +``` +
+ + nihao + +
+ + +``` + ++ v-for + +item 不需要定义 + +在控制台输入app.list.push({content:"hoshi"}),可添加新项 +``` +
+ + nihao + +
    +
  1. + {{item.content}} +
  2. +
+
+ + +``` + ++ 处理用户输入 + +``` +
+
+ 用户名: +
+ +
+ + + +``` +![](./img/条件与循环那一课的/1.png) + ++ 组件化应用构建 + +![](./img/条件与循环那一课的/2.png) + +一个布局为一个组件,一个布局内的几个部分就是几个组件 + +``` +
+
    + +
+ +
+ + + +``` -- Gitee