JavaScript/set:修订间差异
来自康健生活
创建页面,内容为“== 标题文字 == == 创建 == {{leftrightflex|<syntaxhighlight lang="javascript"> new Set(['foo', 1, true, {}, undefined, function (){}]);</syntaxhighlight>|{{cons…” |
|||
| 第4行: | 第4行: | ||
new Set(['foo', 1, true, {}, undefined, function (){}]);</syntaxhighlight>|{{consoleout|<pre> | new Set(['foo', 1, true, {}, undefined, function (){}]);</syntaxhighlight>|{{consoleout|<pre> | ||
Set(6) {'foo', 1, true, {…}, undefined, …} | Set(6) {'foo', 1, true, {…}, undefined, …} | ||
[[Entries]] | [[Entries]] | ||
0: "foo" | |||
value: "foo" | |||
1: 1 | |||
value: 1 | |||
2: true | |||
value: true | |||
3: | |||
value: | |||
[[Prototype]]: Object | |||
4: undefined | |||
value: undefined | |||
5: function (){} | |||
size: 6 | |||
[[Prototype]]: Set | |||
</pre>}}}} | </pre>}}}} | ||
2022年11月2日 (三) 04:20的版本
No categories