当前位置:网站首页>Adding classes dynamically in uni app
Adding classes dynamically in uni app
2022-06-13 06:05:00 【Jiuwujiuwu】
<view :class="{
'click': add_class == 2}" @tap='addCalss(2)'>
</view>
data() {
return {
add_class:'',// Dynamic addition class Class name
}
},
methods: {
// Dynamic addition class
addCalss(data){
this.add_class = data
}
}
边栏推荐
- Record the basic use of zxing, the Google open source library, to generate and read QR codes
- Echart矩形树图:简单实现矩形树图
- Why do so many people hate a-spice
- Leetcode- divide candy - simple
- 微信小程序:点击事件获取当前设备信息(基础)
- Class conflicts caused by tongweb Enterprise Edition and embedded Edition
- The Boys x PUBGMOBILE 联动火热来袭!来看最新游戏海报
- Leetcode Timo attack - simple
- Working principle of sentinel series (source code analysis)
- Leetcode- complement of numbers - simple
猜你喜欢
2021.9.30 learning log -postman
Concurrent programming -- source code analysis of thread pool
Echart柱状图:x轴显示value,y轴显示类别
1+1>2,Share Creators可以帮助您实现
Why do so many people hate a-spice
Ffmpeg download suffix is Video files for m3u8
Sqlplus connection failure
Echart柱状图:堆叠柱状图显示value
Shardingsphere JDBC exception: no table route info
Interrupt processing
随机推荐
Shardingsphere JDBC < bind table > avoid join Cartesian product
ArrayList loop removes the pit encountered
软件测试——接口常见问题汇总
js将文本转成语言播放
移动端适配方案
智能数字资产管理助力企业决胜后疫情时代
Leetcode- intersection of two arrays - simple
Concurrent programming -- source code analysis of thread pool
【DP之01背包】
Concurrent programming -- what is threading?
Misunderstanding of tongweb due to ease of use
Test logiciel - résumé des FAQ d'interface
Concurrent programming -- countdownlatch combined with thread pool
Missing tag identification in cots RFID systems: bringing the gap between theory and Practice
Why do so many people hate a-spice
Tongweb crawl performance log script
A glimpse of [wechat applet]
Security baseline check script - the road to dream
不在以下合法域名列表中,微信小程序解决办法
Pod libwebp error reporting solution