참고 블로그 게시물: https://www.cnblogs.com/fanzhanxiang/p/8888963.html
화살표 함수 자체에는 this가 없으므로 내부 this는 父执行上下文
상속받은 this입니다. 따라서 func0()을 호출하기 위해 obj를 호출할 때 이것이 윈도우이고 상위 실행 컨텍스트는 윈도우입니다.
name = "window";
var obj = {
name: "obj",
func0: () => {
console.log(this)
console.log(this.name);
},
func1: function() {
console.log(this)
console.log(this.name);
},
}
obj.func0()