检测变化的注意事项章节中vm.items.splice(newLength)不能改变数组长度

Author: xiaoweiaaaCreated Mar 11, 2021Updated Jul 5, 2021

还是得用Vue.set(example1.items, newLength-1)实现响应式改变数组长度.

Source: ustbhuangyi/vue-analysis