1.设置style的属性
element.setAttribute('style', 'height: 100px !important');
2.style 的用法(切换背景)
:style=" { background: mmiuy? bg1 : 'url('+bg2+')' ,fontSize:16+'px'}"然后在data里定义
3. 为 <div> 元素添加移除 class名等(方法classList)
https://www.runoob.com/jsref/prop-element-classlist.html
5.v-for数组循环的时候,每一项的背景颜色都不同的问题
https://blog.csdn.net/weixin_42150719/article/details/112249402?utm_medium=distribute.pc_aggpage_search_result.none-task-blog-2~aggregatepage~first_rank_ecpm_v1~rank_v31_ecpm-2-112249402.pc_agg_new_rank&utm_term=uniapp%E8%83%8C%E6%99%AF%E9%A2%9C%E8%89%B2%E5%BE%AA%E7%8E%AF%E4%BD%BF%E7%94%A8&spm=1000.2123.3001.4430