vue change in the array can trigger an array of methods view updates

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

Guess you like

Origin www.cnblogs.com/wbyixx/p/12528801.html