thanks, learned
.
Is
something wrong with how I write it or is it not supported?
0 Answer
thanks, learned
< span > https://blog.csdn.net/weixin_42120669/article/details/120572179 < / span > < / a >
object or array object
Your writing is correct and supported, but I personally recommend binding class rather than style.
In addition, the reason why you didn't succeed this time I think is caused by the assignment operation in the js section. Array data in
data, cannot be assigned this way. This should be the case(take Flag as an example) :
let copyFlag = JSON.parse(JSON.stringify(this.Flag));
copyFlag[1] = 'color:red';
this.Flag = copyFlag;
这家伙很懒,什么都没留下...