Circular rendering in vue input, binding value default value is modified and not updated

In

vue, to implement bi-directional binding using v-model, you need to define the bound value first, but now you don"t know how many items will be rendered, so you can"t define the bound variable first, so I used Jquery to get the value
clipboard.png

:



inputvalue2020inputvalue

clipboard.png

in the input box.

now how to make the input box not re-render to the original value value.

Apr.24,2021

encountered the same problem. The value of


input needs to be bound to a variable instead of an expression. You should not use input here. The value here should not be modified by user input. You can change it to div, and bind the expression with v-text, or just use double curly braces


the problem has been solved. One of the knowledge points in vue two-way binding has been ignored all the time: vMutham model = "array [index] .property"; Using this binding, you can bind the value of an attribute in an array of variable length

Menu