当前位置:网站首页>Watch depth monitoring mode
Watch depth monitoring mode
2022-04-23 05:25:00 【Python User】
watch Deep monitoring of — Listen for deeper data .
If it's an object , You need to conduct in-depth monitoring , In order to monitor the change of attributes in the object :
data(){
return{
form :{
name:'xxx',
age:12
}
}
}
watch:{
// Only one listening object
form(){
deep:true, // Turn on depth monitoring
console.log(v.namge,v.age)
immediate:true
},
// Listen for an attribute of an object :
'form.a': {
handler(newName, oldName) {
console.log('obj.a changed');
},
immediate: true
}
}
immediate:true Represents if in wacth It's stated in form after , I'll go ahead and execute the inside handler Method ,
deep: For deep monitoring , monitor form and His attributes .
handler: It's the previous monitoring function .
adopt v.name and v.age Get the specific value in the object .
版权声明
本文为[Python User]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220544545322.html
边栏推荐
- What role do tools play in digital transformation?
- Data management of basic operation of mairadb database
- egg中的多进程模型--egg文档搬运工
- JS Array常见方法
- d. TS --- for more detailed knowledge, please refer to the introduction on the official website (chapter of declaration document)
- The introduction of lean management needs to achieve these nine points in advance
- Use of uniapp native plug-ins
- 2021-11-08
- Getting started with varnish
- npm升级后问题,慌得一批
猜你喜欢
2021-09-27
领域驱动模型DDD(三)——使用Saga管理事务
如果我是pm之 演出电影vr购票展示
双击.jar包无法运行解决方法
Excel 2016 打开文件第一次打不开,有时空白,有时很慢要打开第二次才行
How to add beautiful code blocks in word | a very complete method to sort out and compare
Blender programmed terrain production
低代码和无代码的注意事项
selenium预先加载cookie的必要性
Low code and no code considerations
随机推荐
The concept of meta universe is popular. Is virtual real estate worth investing
Excel 2016 打开文件第一次打不开,有时空白,有时很慢要打开第二次才行
TSlint注释忽略错误和RESTful理解
Study notes: unity customsrp-12-hdr
引入精益管理方式,需要提前做到这九点
SQL Server检索SQL和用户信息的需求
varnish入门
改进DevSecOps框架的 5 大关键技术
Tslint annotations ignore errors and restful understanding
MySQL series - install MySQL 5.6.27 on Linux and solve common problems
CPT 104_TTL 09
CORS and proxy (づ  ̄ 3  ̄) in egg ~ the process of stepping on the pit and filling the pit ~ tot~
Three of three JS (WEB GL) model deletion / scene emptying / simple sorting of memory release
Solve the problem of JS calculation accuracy
2021-09-23
Use pagoda + Xdebug + vscode to debug code remotely
看板快速启动指南
何时适合进行自动化测试?(下)
If I am PM's performance, movie VR ticket purchase display
MFC实现资源单独Dll实现