当前位置:网站首页>watch监听
watch监听
2022-08-11 03:08:00 【xx820702】
data() {
return {
cur: 1,
defaultProps: {
label: "name",
children: "children",
template: "isok",
},
}
},
watch:{
cur:{
handler(newValue, oldValue){
console.log(newValue);
if (newValue === 3) {
this.defaultProps.label= "deptName"
}else{
this.defaultProps.label= "name"
}
},
}
},
边栏推荐
- Goodbye Chengdu paper invoices!The issuance of electronic invoices for accommodation expenses will soon completely replace the invoices of hotels, catering and gas stations
- The problem that Merge will be lost again after code Revert has been solved
- 2022制冷与空调设备运行操作考试试题模拟考试平台操作
- 夫妻一方婚内向异性大额转款,怎么判
- 常用认证机制
- Docker 链接sqlserver时出现en-us is an invalid culture错误解决方案
- 架构篇(二)架构的复杂度来源
- IDE编译报错:Dangling metacharacter
- ①In-depth analysis of CAS SSO single sign-on framework source code
- ①CAS SSO单点登录框架源码深度分析
猜你喜欢
随机推荐
The practice of alibaba data synchronization component canal
Docker 链接sqlserver时出现en-us is an invalid culture错误解决方案
UNI-APP_iphone苹果手机底部安全区域
DOM-DOM tree, a DOM tree has three types of nodes
What does the sanction of the mixer Tornado mean for the DeFi market?
IDE编译报错:Dangling metacharacter
创业的第125天——随记
OpenCV founder: Open source must not be completely free!
BUU刷题记录
带你系统学习MySQL索引
Ten Advanced Concepts of SQL Development
CTO说MySQL单表行数不要超过2000w,为啥?
作业8.10 TFTP协议 下载功能
MSP430如何给板子下载程序?(IAR MSPFET CCS)
对加密世界的经济误解:现金是储蓄?稀缺性创造价值?
Briefly, talk about the use of @Transactional in the project
按摩椅控制板的开发让按摩椅变得简约智能
索引的创建、查看、删除
Entity to Vo conversion
DNS分离解析和智能解析