我有一個列表如下: list = ["a", "a", "b", "c", "d", "e", "a,b,f"]我使用 new_Set(list) 并得到以下結果:["a", "b", "c", "d", "e", "a,b,f"]我想得到獨特的對象,如何用','分割它們?我需要的是:["a", "b", "c", "d", "e", "f"]
如何在 JavaScript 中按字符和新 Set 拆分列表?
慕村225694
2023-01-06 11:28:02