The vue parent component invokes the child component method ref does not work

parent component:

clipboard.png

clipboard.png

:

clipboard.png

clipboard.png

Apr.02,2021

this.$refs.rc is a Array , and you can use this.$ refs.rc [index] .clearMsg () to call a subcomponent's method.

available for all subcomponents:
  

first console this.$refs.rc, to see what it is

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4be91-44e69.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4be91-44e69.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?