Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 560 Bytes

Array笔记.md

File metadata and controls

20 lines (17 loc) · 560 Bytes
  1. Array-like Object

    定义:

    • objects with a length property and indexed elements.
    • which are Object representations of Arrays with a length property.(另一种定义)
    • 听了那么多次Array-like Object,今天才知道它的确切定义,好丢人啊。

    示例:

     ```
     var realArray = ['a', 'b', 'c'];
     var arrayLike = {
       0: 'a',
       1: 'b',
       2: 'c',
       length: 3
     };
     ```
    

    包含:

    arguments HTMLCollection NodeList