easyui delete the specified line

There was a problem when writing easyui today to delete a row. The way to delete the grid is to use the index in the formatter to delete. The requirement is to add a delete key at the end of each column, so the parameters in the formatter can be used, but when I use

$("#regionAdd").datagrid("deleteRow",index); 的时候出现了问题,删除过后 每一列的index 还是原先的值,并没有改变。
然后使用 $("#regionAdd").datagrid("getRowIndex",row) 查找到当前行的坐标
再使用  $("#regionAdd").datagrid("deleteRow",$("#regionAdd").datagrid("getRowIndex",row);删除解决问题

Note (parameters contained in formatter(value, row, index))

Guess you like

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