摘要: 组合式API 1、setup 使用 setup 函数时,它将接受两个参数:props、context。 1、props 2、setup 函数中的 props是响应式的,当传入新的 prop 时,它将被更新 3、由于 props 是响应式的,不能使用ES6 解构,因为它会消除prop的响应性 4、如果 阅读全文
posted @ 2022-06-14 11:32 探索之路慢慢 阅读(182) 评论(0) 推荐(0) 编辑