search

Home  >  Q&A  >  body text

javascript - Two-way binding problem of vue dynamic data

Form form two-way binding problem, the object defined in my data is dynamically generated,

in the form form

This is not possible for two-way binding


This definition is okay. What is the reason?
Welcome to all the education bosses

大家讲道理大家讲道理2748 days ago508

reply all(1)I'll reply

  • 给我你的怀抱

    给我你的怀抱2017-05-18 10:47:27

    理解下官网文档中这句话Link description

    Since Vue will perform the getter/setter conversion process on the attribute when initializing the instance, the attribute must exist on the data object in order for Vue to convert it, so that it can be responsive

    reply
    0
  • Cancelreply