vue3小结(文章简化总结。。。。)

setup 函数取代beforeCreate 、created ,在他两之前执行,该函数相当于一个生命周期函数。vue中过去的data,methods,watch,computed写在setup()函