javascript - How to get v-model variable name in vue2
漂亮男人2017-06-28 09:26:12
0
2
829
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.
There is no such interface. You can try to implement a command binding yourself, or adjust the implementation idea.
Adjust the implementation idea.