2018年4月3日

箭头函数不会修改this

摘要: setTimeout里的this代表new Person出来的对象 setTimeout里的this代表window 由于箭头函数不改变this,所以setTimeout里面的箭头函数this,不能改变 阅读全文

posted @ 2018-04-03 14:57 杨龙飞 阅读(509) 评论(0) 推荐(0) 编辑

导航

Fork me on GitHub