根据数据动态改变样式 如题,根据data中数据的值来动态改变背景颜色 绑定style data() { return{ isFriend:true } } :style=" isFriend?{backgroundColor:'#FFE431'}:{backgroundColor:'rgba(74,170,255,0.10)'} "