在 vue2 中,我們可以透過 ref 來獲取dom。
console。log(this。$refs。list);
在vue3中就需要透過 ref()
hello {{item}}
hello
child 子元件