摘要: bind、call、apply 区别 call 和 apply 都是为了解决改变 this 的指向。作用都是相同的,只是传参的方式不同。 除了第一个参数外,call 可以接收一个参数列表,apply 只接受一个参数数组 let a = { value: 1}function getValue(nam 阅读全文
posted @ 2020-10-29 13:22 Godfi 阅读(100) 评论(0) 推荐(0) 编辑