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
var fullname = 'a'; var obj = { fullname: 'b', prop: { fullname: 'c', getFullname: function() { return this.fullname; } } }; console.log(obj.prop.getFullname()); // c var test = obj.prop.getFullname; console.log(test()); // a
每日一题会在下午四点在交流群集中讨论,五点小程序中更新答案 欢迎大家在下方发表自己的优质见解 二维码加载失败可点击 小程序二维码
The text was updated successfully, but these errors were encountered:
答案 c a
解析
this
console.log()
getFullName()
obj.prop
test
window
fullname
Sorry, something went wrong.
?????答不对题啊........
@yaooooooooo 改过来了哈,感谢指正
No branches or pull requests
扫描下方二维码,收藏关注,及时获取答案以及详细解析,同时可解锁800+道前端面试题。
The text was updated successfully, but these errors were encountered: