2025年11月21日
摘要: API不同 Vue2 使用 Object.defineProperty 方法、 Vue3使用 Proxy 方法 具体 Object.defineProperty 是监听某一属性 Proxy 是监听对象 Vue2 只能拦截已有属性 监听不到 新增/删除 数组下标 Vue3 行为级拦截 不需要逐个定义属 阅读全文
posted @ 2025-11-21 17:33 贲风 阅读(3) 评论(0) 推荐(0)