jQuery easyui datagrid

The problem I found when using the jQuery easyui framework is the data grid inside. If you want to refresh the data of a certain row, it is difficult not to go to the background. I have solved this problem through testing today. The specific code as follows:

var columns = $(".table").datagrid("options").columns;
rowData[columns[0][1].field] = 'field name'.
 $(".table").datagrid("refreshRow",index);

 Explanation: rowData: refers to the row you want to modify.

           columns[0][1] : The 0 in it cannot be changed, and the 1 behind it represents the second column.

           refreshRow : Used to refresh the current row.

           index : The number of the row to refresh.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326725670&siteId=291194637