我似乎找不到答案,如何將數(shù)組中的數(shù)組更改為數(shù)組中的對象..??在 javaScript 中解決這個問題。如何轉(zhuǎn)換?如何轉(zhuǎn)換?我有這個數(shù)組。 [ "or", [ "or", { "status": 1 }, { "verified": 1 } ], [ "and", { "social_account": 1 }, { "enable_social": 1 } ]]我想要這個對象:{ "or": [ { "or": [ { "status": 1 }, { "verified": 1 } ] }, { "and": [ { "social_account": 1 }, { "enable_social": 1 } ] } ]}
如何將此數(shù)組轉(zhuǎn)換為對象
catspeake
2023-05-11 16:53:23