As described by @mplungjan, I was right. Then I immediately press the speed increase button. But following this, I finally got an error.
<script> var data = {"result":[ {"FirstName":"Test1","LastName":"User","Email":"test@test.com","City":"ahmedabad","State":"sk","Country":"canada","Status":"False","iUserID":"23"}, {"FirstName":"user","LastName":"user","Email":"u@u.com","City":"ahmedabad","State":"Gujarat","Country":"India","Status":"True","iUserID":"41"}, {"FirstName":"Ropbert","LastName":"Jones","Email":"Robert@gmail.com","City":"NewYork","State":"gfg","Country":"fgdfgdfg","Status":"True","iUserID":"48"}, {"FirstName":"hitesh","LastName":"prajapti","Email":"h.prajapati@zzz.com","City":"","State":"","Country":"","Status":"True","iUserID":"78"} ] } alert(data.result) delete data.result[3] alert(data.result) </script>
Delete is just deleting the data, but the "place" still exists as undefined.
I did this and it works like a charm:
data.result.splice(2,1);
Value: delete 1 element at position 3 (because the array is counted in the form 0, then an element without 3 counts as 2)
Sulung Nugroho Sep 28 '16 at 17:02 2016-09-28 17:02
source share