JS set方法的使用问题
phpcn_u699
phpcn_u699 2017-02-17 11:01:19
0
2
1804

我怎么取到对应的值以及长度呢?

var set = new Set([1, 2, 3, 4, 4,4,4,4,2,2,2]);
         console.log(set)


phpcn_u699
phpcn_u699

reply all(2)
数据分析师

Questions about using the JS set method - Q&A on the PHP Chinese website - Questions about using the JS set method - Q&A on the PHP Chinese website

Take a look around and learn.

巴扎黑
length: set.size;get value: let origin = Array.from(set);


Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template