JavaScript/set:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
创建页面,内容为“== 标题文字 == == 创建 == {{leftrightflex|<syntaxhighlight lang="javascript"> new Set(['foo', 1, true, {}, undefined, function (){}]);</syntaxhighlight>|{{cons…”
 
Kangkk​(留言 | 贡献)
第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"
    0: "foo"
    value: "foo"
      value: "foo"
  1: 1
    1: 1
    value: 1
      value: 1
  2: true
    2: true
    value: true
      value: true
  3:  
    3:  
    value:
      value:
      [[Prototype]]: Object
        [[Prototype]]: Object
  4: undefined
    4: undefined
    value: undefined
      value: undefined
  5: function (){}
    5: function (){}
  size: 6
    size: 6
  [[Prototype]]: Set
    [[Prototype]]: Set
</pre>}}}}
</pre>}}}}

2022年11月2日 (三) 04:20的版本

标题文字

创建

模板:Leftrightflex