window.name = 'ByteDance'; function A () { this.name = 123; } A.prototype.getA = function(){ console.log(this); return this.name + 1; } let a = new A(); let funcA = a.getA; funcA(); 这个输出好像是ByteDance1
2 6

相关推荐

零OFFER战士:另一个版本查看图片
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务