摘要: 三种方法用于指定函数内部的 this 指向 call var rascal = 456; var keith = { rascal: 123 }; function a() { console.log(this.rascal); } a.call(this); //456 a.call(keith) 阅读全文
posted @ 2022-03-09 10:32 远方的少年🐬 阅读(18) 评论(0) 推荐(0) 编辑