Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit 6e209f1

Browse files
authored
docs(zh): update index.md (#42)
1 parent 63ce789 commit 6e209f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zh/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ Ref 可以说是本提案中唯一的“新”概念。引入它是为了以变
656656

657657
2. 读写 ref 的操作比普通值的更冗余,因为需要访问 `.value`
658658

659-
有些建议过的编译时语法糖 (类似 Svelte 3) 可以解决这个问题。虽然技术上可行,但我们不认为 Vue 应该默认这么做 (如[与 Svelte 的比较](#与-svelte-的比较)中所讨论的)。或者说,技术上在用户端做一个 Babel 插件是可行的
659+
有人建议使用编译时的语法糖 (类似 Svelte 3) 来解决这个问题。这虽然在技术上可行,但我们并不认为 Vue 需要默认支持 (正如在[与 Svelte 比较](#与-svelte-比较)中所讨论的那样)。换而言之,可以在用户端开发一个 Babel 插件来处理
660660

661661
我们已经讨论过了是否可以完全避免引入 ref 的概念而只使用响应性对象,但是:
662662

0 commit comments

Comments
 (0)