摘要: 1. 使用 call 方法 call 方法可以显式地调用一个函数,并指定 this 的指向 function greet(greeting) { console.log(`${greeting}, my name is ${this.name}`); } const person = { name: 阅读全文
posted @ 2025-06-12 19:12 SimoonJia 阅读(32) 评论(0) 推荐(0)