会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
燕林
博客园
首页
新随笔
联系
订阅
管理
随笔 - 26
文章 - 2
评论 - 0
阅读 -
9809
06 2022 档案
vue3 watch 监听注意事项
摘要:今天写项目 发现watch 监听不起作用 监听得对象里面得属性 用的reactive 才想起来 用对象得时候需要()=>state.data这样写 而不是 直接state.data 正确写法: let state=reactive({data:""}) watch( () => [state.dat
阅读全文
posted @
2022-06-30 11:57
燕林
阅读(380)
评论(0)
推荐(0)
编辑
公告
昵称:
燕林
园龄:
12年11个月
粉丝:
0
关注:
5
+加关注
<
2025年3月
>
日
一
二
三
四
五
六
23
24
25
26
27
28
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
搜索
常用链接
我的随笔
我的评论
我的参与
最新评论
我的标签
我的标签
React
(1)
随笔分类
html(1)
js(6)
node(1)
react(1)
vue(6)
vue3(4)
三维(1)
随笔档案
2023年1月(1)
2022年12月(1)
2022年10月(1)
2022年8月(1)
2022年7月(4)
2022年6月(1)
2022年4月(2)
2022年3月(1)
2022年2月(1)
2021年11月(3)
2021年10月(3)
2021年9月(2)
2021年8月(1)
2021年7月(1)
2019年3月(1)
2019年1月(1)
2015年9月(1)
更多
阅读排行榜
1. vue3 使用 vue-video-player Cannot read property '_c' of undefined(2783)
2. js filter 改变数组属性值 原数组属性值也会改变(1145)
3. vue3 Cannot set property 'render' of undefined解决方法(606)
4. css 图层事件穿透(455)
5. nvm 切换版本没有作用(401)
推荐排行榜
1. react utif tif格式图片预览(1)
2. vue3 使用 vue-video-player Cannot read property '_c' of undefined(1)
点击右上角即可分享