6
公开标注数
6
参与人数
2026-07-16 09:58:56
首次 Whisper

本页的公开 Whisper

划选高亮2026-07-16 16:22:56
原文高亮摘录
The .value property gives Vue the opportunity to detect when a ref has been accessed or mutated.
Whisper 随想笔记
So basically .value is like a little spy Vue plants on your data.
划选高亮2026-07-16 13:19:56
原文高亮摘录
ref() takes the argument and returns it wrapped within a ref object with a .value property
Whisper 随想笔记
Hmm, why not just return the value directly? Seems like extra steps.
划选高亮2026-07-16 13:10:56
原文高亮摘录
ref() takes the argument and returns it wrapped within a ref object with a .value property
Whisper 随想笔记
So basically every reactive value is just an object with a .value inside, got it.
划选高亮2026-07-16 10:16:56
原文高亮摘录
Vue uses a $ prefix when exposing its own built-in APIs via the component instance. It also reserves the prefix _ for internal properties.
Whisper 随想笔记
Does that mean I can't use _count for my counter? Ugh.
划选高亮2026-07-16 10:07:56
原文高亮摘录
Vue uses a $ prefix when exposing its own built-in APIs via the component instance. It also reserves the prefix _ for internal properties.
Whisper 随想笔记
Good to know, I always wondered what the $ was for.
划选高亮2026-07-16 09:58:56
原文高亮摘录
Vue uses a $ prefix when exposing its own built-in APIs via the component instance. It also reserves the prefix _ for internal properties.
Whisper 随想笔记
Ah, so that's why my $_data broke everything

分享本页 Whisper

分享到 X
短链接
https://domwhisper.com/s/3b5e9f057d32
嵌入代码
<iframe src="https://domwhisper.com/embed/3b5e9f057d32" width="100%" height="480" style="border:0;border-radius:16px" loading="lazy"></iframe>

看看大家在 vuejs.org 上讨论了什么

安装 DomWhisper,浏览网页时实时查看 whisper,也可以加入讨论。

获取插件