提交 057b86dd 编写于 作者: H hdx

$callMethod: 调整获取组件实例的注释说明

上级 4e9c8bf5
......@@ -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 方法
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册