From bfc2abad817910dd8f224ebfd2a9d7b1e717310f Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 5 Jun 2021 17:42:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A8=E5=8D=95=E8=BE=93=E5=85=A5=E7=BB=91?= =?UTF-8?q?=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...3\345\205\245\347\273\221\345\256\232).md" | 115 ++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 "\346\235\250\345\256\207\346\226\214/note-2021-06-05(\347\254\254\345\205\253\350\212\202\350\257\276 \350\241\250\345\215\225\350\276\223\345\205\245\347\273\221\345\256\232).md" diff --git "a/\346\235\250\345\256\207\346\226\214/note-2021-06-05(\347\254\254\345\205\253\350\212\202\350\257\276 \350\241\250\345\215\225\350\276\223\345\205\245\347\273\221\345\256\232).md" "b/\346\235\250\345\256\207\346\226\214/note-2021-06-05(\347\254\254\345\205\253\350\212\202\350\257\276 \350\241\250\345\215\225\350\276\223\345\205\245\347\273\221\345\256\232).md" new file mode 100644 index 0000000..3e935a7 --- /dev/null +++ "b/\346\235\250\345\256\207\346\226\214/note-2021-06-05(\347\254\254\345\205\253\350\212\202\350\257\276 \350\241\250\345\215\225\350\276\223\345\205\245\347\273\221\345\256\232).md" @@ -0,0 +1,115 @@ +# 2021-6-5 Vue.js Vue 事件处理 + +## 文本 多行文本 复选框 单选按钮 选择框 ++ 多选时 (绑定到一个数组) ++ multiple 可接受多个值的文件上传字段 +``` +
+ + +

+
+ + + +
+ + + 西瓜 + 冬瓜 + 南瓜 + 东瓜 + +
+ + + 跑步 + 跳伞 + 游泳 + 打球 + +
+ + + +
+ +
+ {{item.name}} +
+ +
+ + + + +``` +## 值绑定 ++ value +``` + + + + + + + + + + +{{pick}} +// 当选中时 +vm.pick === vm.a +``` +## 修饰符 ++ .lazy 在默认情况下,v-model 在每次 input 事件触发后将输入框的值与数据进行同步 ++ .number 自动将用户的输入值转为数值类型 ++ .trim 自动过滤用户输入的首尾空白字符 +``` + +``` \ No newline at end of file -- Gitee