focus:
You can use the vue
one given to you api
to implement the added data and also have a responsive function, called: Vue.set()
, set()
which can pass three parameters: f(target,key,val)
, target
: 目标(你要往谁的身上追加一个属性)
, key
: 你要往它的身上追加一个什么名字的属性
, val
:这个属性的值
Vue.set and vm.$set