箭头函数没有自己的this,它需要向上去寻找;
箭头函数:默认指向window ; 谁调用他,他就指向谁,同时箭头函数里面没有this ;定时器里面的函数都是window 来调用;
posted on 2022-05-18 10:01 艾小码 阅读(14) 评论(0) 编辑 收藏 举报