藏锋入鞘
Suivre

Après avoir suivi, vous pouvez suivre ses informations dynamiques en temps opportun

Notes de cours
  • Cours dans la section correspondante:Rendu de liste

    只有能改变数组原始数据的方法才会被VUE检测到,比如 push、shift() 等,像 concat()、filter() 返回新数组的方法,可以使用 新数组赋值老数组的方式渲染。 如果直接通过下标改变数组的值,如 this.datalist[0] = 'xxx'; VUE 无法检测,可以通过 Vue.set(arr, index, value) 或者 array.splice() 的方式来更新数组的值。

    2019-01-201个赞