The difference between cmoputed and method and watch

watch can have no return value, it only depends on one value, and this value can affect the change of multiple values.
Computed must have a return value. According to the return value, the dependency relationship can be known, and then the function will be triggered when the data changes. Computed properties are cached based on their dependencies.
method will be called whenever the page is re-rendered and trigger the corresponding function.

Guess you like

Origin blog.csdn.net/weixin_57780816/article/details/120451973