Vue2.0 has a child component that updates the interface to the parent component

I remember there was such a update, but I couldn"t find update on the official website-- what is that api?

Mar.18,2021

https://cn.vuejs.org/v2/api/-sharp.

this is the life cycle of Vue . You can trigger the function to update in the beforeUpdate cycle.


you're talking about beforeUpdate and updated?.


updated is also a lifecycle hook function of Vuejs, indicating that when the data changes, it triggers the hook function to update the data


if you want the child component to be manipulated, the parent component responds to this operation to update the data, then the child component reports the event

.
Menu