search

Home  >  Q&A  >  body text

javascript - Vue2 writes its own transition component, why can't it be bound using the new class method?

Why is the event of picture 1 not bound? It is bound when I use method 2. Why is this?
Picture 1

Picture 2

伊谢尔伦伊谢尔伦2732 days ago782

reply all(1)I'll reply

  • 代言

    代言2017-06-26 10:56:35

    https://cn.vuejs.org/v2/api/#...

    on: should be followed by Object or Function

    There is still a difference between new Class and using {} to directly create an Object

    reply
    0
  • Cancelreply