test = [ ["qwe","1"], ["ewq","2"], ["aaa","4"], ]
我想让数组数量保持在四个,有缺就补空数组,并且要照数组内的数字去补,却哪里补哪里
补完要像这样
test = [ ["qwe","1"], ["ewq","2"], ["",""], ["aaa","4"], ]
该如何实现这需求?
关注 | 3
收藏
宝慕林4294392
波斯汪
相关分类