The official documentation describes methods that a parent component cannot call a child component that can be written down for later use

Js methods:{childMethod(){console.log(" This method is called ")}} // Parent.json {// Parent.json {// Parent.json {// Parent.json {// Parent.json {// Parent.json {// Parent.json {// Parent.json {// Parent.json {// Parent.json {// Parent.json {// Parent.json} child-compoent: '.. // componets/ / component.axml <child-compoent ref="childMethods" /> // point to child // component.js { ChildMethods (ref){// register a child instance to call the child component method this.childComPoentMethod = ref}, callChildCompoentMethods(){ this.childCompoentMethod.childMethod() } }

This allows you to call the child component’s methods