something wrong with how I write it or is it not supported?
< 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 = 'color:red'; this.Flag = copyFlag;