Obtenez l'index après avoir poussé la valeur dans le tableau dans JS

var testRowIndex = gridData.push(TestRow) - 1;
Gentle Gnat