来源:https://stackoverflow.com/questions/52665445/convert-array-of-objects-with-parent-child-relationships-to-array-of-nested-ob 标签 javascript arrays object nested