The difference between the computed and watch the Vue

  Vue real difference in the computed and watch are: computed to produce its dependencies, and watch produced in its dependencies change. As long as there is dependence, we will be able to access their corresponding computed attributes; but only depend changed, we can access to watch their corresponding properties. And, computed can access its associated cache, when dependent on changes in the relevant cache is not updated, which saves the performance overhead computed.

Guess you like

Origin www.cnblogs.com/zhangnan35/p/10962043.html