當前位置:成語大全網 - 新華字典 - uniapp 父子組件傳值

uniapp 父子組件傳值

壹、父組件向子組件傳遞數據(props)

child

parent

二、子組件向父組件傳遞數據(emit)

parent

child

三、子組件與父組件數據同步(.sync)

child

parent