箭头函数 特点 没有 this arguments prototype,没有就向上级作用域找 let a = 100; // 此属性不会放到全局上 let obj = { a:1, fn:()=>{ // this => obj 没有this指向从而解决了this问题 setTimeout(()=>{ console.log(this.a); }) } } obj.fn(); // undefined this指向window但是let声明的变量并不会给window增加所以是undefined