阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      JS object __count__

      已废弃 Gecko 2 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)
      This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

       __count__ 属性曾经用来存放对象的可枚举的属性的个数,但是已经被废除。

      语法

      obj.__count__
      

      示例

      { 1: 1 }.__count__              // 1
      [].__count__                    // 0
      [1].__count__                   // 1
      [1, /* hole */, 2, 3].__count__ // 3
      
      

      详细说明

      无需详细说明

      更多请参看

      目录
      目录