There was no problem using $ref to call the subcomponent method, but this call cannot be called

< H2 > there was no problem using $ref to call subcomponent methods, but this call failed to call < / H2 >. < H1 > the parent component prints out the this.$refs, method to find the child component, and the length is empty < / H1 >

there is no problem with the writing of the parent component and the child component. Print it out, and the length of the method in the child component is empty

clipboard.png

Dec.02,2021

do you want to call this Synchronousdata () method? The length of a function is determined by the number of parameters. Does your function have parameters?
if you want to call this method, you can:

this.$refs.subject.Synchronousdata();
Menu