共计 208 个字符,预计需要花费 1 分钟才能阅读完成。
const person = {name: 'Lydia'}
function sayHi(age) {console.log(`${this.name} is ${age}`)
}
sayHi.call(person, 21)
sayHi.bind(person, 21)
- A:
undefined is 21
Lydia is 21
- B:
function
function
- C:
Lydia is 21
Lydia is 21
- D:
Lydia is 21
function
参考答案
正文完