### 生命周期钩子 #### setup中如何使用生命周期函数呢? ##### 可以使用直接导入的 onX 函数注册生命周期钩子
import {onMounted} from 'vue' setup(){ onMounted(()=>{ }) return { } }