vue中created、mounted,methods,watch,computed方法

created : Execute before html loading is complete. Execution order: parent component-child component

mounted : Execute after html loading is complete. Execution order: child component-parent component

methods : event method execution

watch : watch is to monitor the change of a value, and then execute the corresponding function.

computed : computed is a calculated attribute, that is, the final value calculated by relying on other attributes

Guess you like

Origin blog.csdn.net/he1234555/article/details/115288901