search

Home  >  Q&A  >  body text

javascript - How to get v-model variable name in vue2

When vue2 develops a component, in the component, you can get the value specified by v-model through this.value, but how to get the variable name corresponding to v-model, such as <input v-model='deptName' /> , how to get the deptName variable name.

漂亮男人漂亮男人2763 days ago836

reply all(2)I'll reply

  • 为情所困

    为情所困2017-06-28 09:28:12

    There is no such interface. You can try to implement a command binding yourself, or adjust the implementation idea.

    reply
    0
  • 世界只因有你

    世界只因有你2017-06-28 09:28:12

    Adjust the implementation idea.

    reply
    0
  • Cancelreply