The second method cannot be obtained, please ask God! ! ! ! !
闭关修行中......
Sometimes, you really have to read the documentation carefully. . Only after the mounting is completed, $refs can be obtained.Thank you everyone.
Post the completed code! There is a delay when the console.log() function prints, I can’t completely believe it
In which method did you call console.log?
Looking at your second method, you specify a componentrefbut you do not read or operate the methods or properties in it
ref
You need to display the html template and the functions called. Otherwise, how will you know what the problem is, and there is no mention of the vue version
<p cannot be obtained if="false" ref="selection"></p> or created
Sometimes, you really have to read the documentation carefully. .
Only after the mounting is completed, $refs can be obtained.
Thank you everyone.
Post the completed code! There is a delay when the console.log() function prints, I can’t completely believe it
In which method did you call console.log?
Looking at your second method, you specify a component
ref
but you do not read or operate the methods or properties in itYou need to display the html template and the functions called. Otherwise, how will you know what the problem is, and there is no mention of the vue version
<p cannot be obtained if="false" ref="selection"></p> or created