javascript - vue, $refs cannot be obtained
阿神
阿神 2017-05-18 10:59:09
0
6
1111

The second method cannot be obtained, please ask God! ! ! ! !

阿神
阿神

闭关修行中......

reply all(6)
我想大声告诉你

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

滿天的星座

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!