Because Vue is responsive, so that when the data changes, the change will automatically detect the data Vue, the view corresponding to the update occurs
Vue contains a set of compiled methods to observe the array, using the following method of changing the array will trigger update views:
- push
- pop
- shift
- unshift
- splice
- sort
- reverse