使用vuejs表单绑定更改表单时如何获取更改的值?

时间:2016-01-17 10:33:22

标签: javascript vue.js

使用vuejs表单绑定更改表单时如何获取更改的值?

如:

数据绑定到表单:

{a:1, b:2, c:3}
改变后,它将是:

{a:2, b:2, c:3}

以及如何获取更改的数据:

{a:2}

我的意思是如何更改attrs等已更改的数据,然后获取     {A:2}

1 个答案:

答案 0 :(得分:-1)

我不明白你的问题..但是,让我试着解释一下:

error C2664: 'All_Matrix_sum' : cannot convert parameter 1 from 'int [5][3]' to 'int'
There is no context in which this conversion is possible.
'Diag_Matrix_sum' : cannot convert parameter 1 from 'int [5][3]' to 'int'
There is no context in which this conversion is possible
error C2087: 'Matrix' : missing subscript
error C2087: 'Matrix' : missing subscript

您始终可以使用$ data来获取所有$ data数据更改。

<input type="text" v-model="a">
<input type="text" v-model="b">
<input type="text" v-model="c">

{{ $data | json }}