How to delete the specified js object and its values in the array

 

for (var i = 0; i < stationall.length; i++) {

delete stationall[i]._index;

delete stationall[i]._rowKey;
}

 

Traverse it, this array. Then _index and _row many objects. This situation is due, I use iview frames, tables New data on this problem. At that time I should worry bald head, ha ha ha! I hope I can help you!

Guess you like

Origin www.cnblogs.com/lq2333/p/11209609.html