箭头函数 箭头函数不绑定this关键字,箭头函数中的this,指向的是函数定义位置的上下文this。 面试题: <script> var obj={ name:18, sayhi:()=>{ console.log(this.a