Front-end vue uses js to change the background color of a certain row of the table

Front-end vue uses js to change the background color of a certain row of the table

Find the row or component you want to get.
Find the id attribute or class attribute
. Although the class attribute may be set the same, you can get all of them, and you can just follow it with [i] value

add in data

data(){

          idSearch:[],

          wantSearch:'',

          tableData: [],//The table you want to change requires your own data

           num:0,

}

Add in the method method

renderings

Guess you like

Origin blog.csdn.net/qq_43644046/article/details/122573847
Recommended