Skip to content

Commit 1c0935f

Browse files
wxsmsnaokie
authored andcommitted
remove unnecessary space (#1253)
1 parent a6ec115 commit 1c0935f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/special-attributes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## key
44

5-
- **受け入れ型:** `number | string | symbol `
5+
- **受け入れ型:** `number | string | symbol`
66

77
特別な属性 `key` は、Vue の仮想 DOM アルゴリズムのため、ノードの新しいリストを古いリストに対して差分を取るときに、VNodes を識別するヒントとして主に使われます。キーがない場合、Vue は要素の移動を最小限にするアルゴリズムを使い、できる限り同じ種類の要素をその場でパッチや再利用しようとします。キーがある場合、キーの変更順序に基づいて要素の順番を変更して、存在しなくなったキーを持つ要素は常に削除や破棄されます。
88

0 commit comments

Comments
 (0)