可以通过 apply、call、bind 改变 this 的指向 普通函数和匿名函数的 this 指向全局 window 箭头函数的 this 自动与箭头函数外的 this 保持一致,箭头函数在哪声明就指向哪里
posted on 2022-02-23 13:52 未茉 阅读(32) 评论(0) 收藏 举报