vue's v-bind and text interpolation don't work this way

etdong 注册会员
2023-02-28 08:10
< div class = "md_content_show e397 data - v - 3967" = "" >

thanks, learned

bjynfww 注册会员
2023-02-28 08:10

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;

About the Author

Question Info

Publish Time
2023-02-28 08:10
Update Time
2023-02-28 08:10