diff --git a/src/guide/composition-api-template-refs.md b/src/guide/composition-api-template-refs.md index 6fee75195..79b1456d1 100644 --- a/src/guide/composition-api-template-refs.md +++ b/src/guide/composition-api-template-refs.md @@ -1,13 +1,13 @@ ## 模板引用 -> 本节使用[单文件组件](single-file-component.html)代码示例的语法 +> 本节代码示例使用[单文件组件](single-file-component.html)的语法 -> 本指南假定你已经阅读了 [Composition API 简介](composition-api-introduction.html)和[响应式基础](reactivity-fundamentals.html)。如果你不熟悉组合 API,请先阅读这篇文章。 +> 本指南假定你已经阅读了 [Composition API 简介](composition-api-introduction.html)和[响应式基础](reactivity-fundamentals.html)。如果你不熟悉组合 API,请先阅读此文章。 在使用组合 API 时,[响应式引用](reactivity-fundamentals.html#creating-standalone-reactive-values-as-refs)和[模板引用](component-template-refs.html)的概念是统一的。为了获得对模板内元素或组件实例的引用,我们可以像往常一样声明 ref 并从 [setup ()](composition-api-setup.html) 返回: ```html -