For example, old = [1,3,4,5]; new = [212,43,54,23];Use new to overwrite old, Vue can detect changes in the array and re-render the data
Vue has a section dedicated to this
Yes, as long as old is responsive, replacing it with new will trigger set, and Vue can make new and the elements inside responsive.
Like old[233] = 1 because old[233] is originally undefined and Vue cannot detect it without binding get and set.
For more information, please see the documentation https://cn.vuejs.org/v2/guide... https://cn.vuejs.org/v2/guide...
Vue has a section dedicated to this
Yes, as long as old is responsive, replacing it with new will trigger set, and Vue can make new and the elements inside responsive.
Like old[233] = 1 because old[233] is originally undefined and Vue cannot detect it without binding get and set.
For more information, please see the documentation
https://cn.vuejs.org/v2/guide...
https://cn.vuejs.org/v2/guide...