Implementation principle : Obtain the corresponding dom element by defining the ref variable with the same name in dom
Enter the red icon below:
Note: Be sure to export the defined variable with the same name as ref! Export! Export! ! ! Otherwise value is always null.