keys()是对键名的遍历

    1. for (let index of ['a', 'b'].keys()) {
    2. console.log(index);
    3. }
    4. // 0
    5. // 1