我有一个数组(tlist),其中的键与数组链接:
tliste.push({"GROUP104":["321992","322052","321812","314022","0"]});
tliste.push({"GROUP108":["322011","322032","0"]});
tliste.push({"GROUP111":["322020","322021","322040","322041","313060","313072","0"]});
我现在需要构建一个函数来获取例如 Group104 和 Group111 的值并将它们克隆到一个新数组中:
newarrray = ["321992","322052","321812","314022","0","322020","322021","322040","322041","313060","313072","0"]
最好对新数组进行排序并删除“0”——但这并不重要。