The arrow function in ES6 as an object attribute, the pointing problem of this

when I read the book introduction to ES6, I introduced the arrow function this

. The immobilization of
this is not because there is a mechanism for binding this inside the arrow function, but because the arrow function does not have its own this, at all, so the internal this is the this of the outer code block.

there are also clouds on the Internet

The this binding of the
arrow function looks at the object under which the function of this is defined, and this points to the object to which it is bound
const Person = {
        "sayHello": () => {console.log(this)}
            };
      Person.sayHello();

Why does the this here point to window? Why not the this. of the Person object of the external code block

Mar.28,2021

Update

const func = () => {
  console.log(this);
};

const Person = {
  hello: func,
};

Person.hello();

so naturally it is window , and the place where the function is declared is window .

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea6598-1dca.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea6598-1dca.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?