12 2023 档案
学习Vue3 第六章(认识Ref全家桶)
摘要:ref 接受一个内部值并返回一个响应式且可变的 ref 对象。ref 对象仅有一个 .value property,指向该内部值 <template> <div> <button @click="changeMsg">change</button> <div>{{ message }}</div>
阅读全文