0
我有一個不可預知的數組數量,如下圖所示。js的linq:如何獲得多個陣列的笛卡爾乘積
使用LINQ對JS我想獲得這些陣列即笛卡爾積。
{
{AttributeTypeId: 10, AttributeId: 34, AttributeName: "b11 13-128"}
{AttributeTypeId: 11, AttributeId: 56, AttributeName: "21/uk4"},
{AttributeTypeId: 13, AttributeId: 69, AttributeName: "Boy"}
},
{AttributeTypeId: 10, AttributeId: 33, AttributeName: "b10 13-128"},
{AttributeTypeId: 11, AttributeId: 56, AttributeName: "21/uk4"},
{AttributeTypeId: 13, AttributeId: 69, AttributeName: "Boy"}
},
{
{AttributeTypeId: 10, AttributeId: 38, AttributeName: "G01 13-102"},
{AttributeTypeId: 11, AttributeId: 56, AttributeName: "21/uk4"},
{AttributeTypeId: 13, AttributeId: 69, AttributeName: "Boy"}
},
{
{AttributeTypeId: 10, AttributeId: 34, AttributeName: "b11 13-128"},
{AttributeTypeId: 11, AttributeId: 54, AttributeName: "19/uk3"},
{AttributeTypeId: 13, AttributeId: 69, AttributeName: "Boy"}
}
....
etc.
我該如何實現它?
歡迎堆棧溢出。請參閱幫助中心的[問]。這不是一個代碼寫入服務。 –