$scope.deleteClick = function(e){
e.preventDefault();
var datasource = $scope.mygrid.datasource;
var index = $(e.target).closest("tr")[0].rowIndex;
datasource.remove(datasource.at(index -1));
}
在这段代码中,您会看到我进行了 DOM 操作,因为我没有从 parameter 获取行索引e
。请帮我获取行索引。