We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The text was updated successfully, but these errors were encountered:
同好奇,有知道为什么的吗
Sorry, something went wrong.
我认为这里应该是写错了。根据mdn关于Reflect.get描述。第三个参数receiver为”如果target对象中指定了getter,receiver则为getter调用时的this值。“ 下面这段代码可以印证mdn。 let obj = { age: 10, get getPersonAge() { return this.age; }, }; console.log(Reflect.get(obj, "getPersonAge", { age: 20 }));
let obj = { age: 10, get getPersonAge() { return this.age; }, }; console.log(Reflect.get(obj, "getPersonAge", { age: 20 }));
No branches or pull requests
The text was updated successfully, but these errors were encountered: