摘要: 箭头函数 箭头函数里的this会引用 定义 箭头函数时,外部作用域 的 this 。箭头函数只是 引用 外部作用域的 this ,本身不存在 this。同时因为没有 this ,所以 无法用new生成实例,例: 这个例子中,箭头函数的 this 在定义 method 方法时,引用了test的上下文, 阅读全文
posted @ 2016-12-20 11:54 _NKi 阅读(246) 评论(0) 推荐(0) 编辑