收藏 / 列表

新茶十九 - Vue 3 深入瞭解,那些很少有人知道的實用特性和技巧

1. 深層響應式控制 shallowRef - 淺層 Ref import { shallowRef, triggerRef } from 'vue' const state = shallowRef({ count: 0, nested: { value: 1 } // 這個變化不會被自動追蹤 }) // 只有直接賦值會觸發更新 state.value = { c

vue.js , 響應式 , 前端開發 , ide , Javascript

農民工前端 - vue3報錯:Uncaught runtime errors: × ERROR this.$set is not a function TypeError: this.$set is not a fu

報錯內容 Uncaught runtime errors: × ERROR this.$set is not a function TypeError: this.$set is not a function at Proxy.editRow (webpack-internal:///./node_modules/babel-loader/lib/index.js??clon

vue.js , 數組 , Vue , bundle , 前端開發