Home  >  Q&A  >  body text

javascript - vue, $refs cannot be obtained

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

阿神阿神2712 days ago1118

reply all(6)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-18 11:01:09

    Sometimes, you really have to read the documentation carefully. .
    Only after the mounting is completed, $refs can be obtained.
    Thank you everyone.

    reply
    0
  • 漂亮男人

    漂亮男人2017-05-18 11:01:09

    Post the completed code! There is a delay when the console.log() function prints, I can’t completely believe it

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-18 11:01:09

    In which method did you call console.log?

    reply
    0
  • 为情所困

    为情所困2017-05-18 11:01:09

    Looking at your second method, you specify a componentrefbut you do not read or operate the methods or properties in it

    reply
    0
  • 滿天的星座

    滿天的星座2017-05-18 11:01:09

    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

    reply
    0
  • PHP中文网

    PHP中文网2017-05-18 11:01:09

    <p cannot be obtained if="false" ref="selection"></p> or created

    reply
    0
  • Cancelreply