diff --git a/docs/uni-app-x/tutorial/codegap.md b/docs/uni-app-x/tutorial/codegap.md index ee38ebaf326be52c1d703448546fbab177f297fd..27754f22988023e245365385ac8d06a9aa1e6043 100644 --- a/docs/uni-app-x/tutorial/codegap.md +++ b/docs/uni-app-x/tutorial/codegap.md @@ -304,7 +304,7 @@ request({url: 'https://www.example.com/request'} as RequestOptions) } }, onReady() { - // 获取组件 ref 属性 component1 + // 通过组件 ref 属性获取组件实例 const component1 = this.$refs['component1']! as ComponentPublicInstance; // 通过 $callMethod 调用组件的 foo1 方法