You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/guide/forms.md
+17-16Lines changed: 17 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,11 @@ type: guide
3
3
order: 7
4
4
---
5
5
6
-
## The Basics
6
+
## 基本用法
7
7
8
-
You can use the `v-model`directive to create two-way data bindings on form input elements. It automatically picks the correct way to update the element based on the input type.
8
+
你可以在表单的 input 元素上使用 `v-model`指令来创建双向数据绑定。它会根据 input type 自动选取正确的方式更新元素。
By default, `v-model`syncs the input with the data after each `input`event. You can add a `lazy`attribute to change the behavior to sync after `change`events:
In your data, `myOptions`should be an keypath/expression that points to an Array to use as its options. The Array can contain plain strings, or contain objects.
0 commit comments