Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged 一道关于js

0 votes
659 views
1 answer
    var name = 'the window' var ob = { name: 'my object', getName: function(){ return this.name; } } var a; console.log(ob.getName ... object 为什么第二个显示my object? 立即执行函数this不是指向window吗?...
asked Jan 27, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
548 views
1 answer
    var name = 'the window' var ob = { name: 'my object', getName: function(){ return this.name; } } var a; console.log(ob.getName ... object 为什么第二个显示my object? 立即执行函数this不是指向window吗?...
asked Jan 27, 2021 in Technique[技术] by 深蓝 (71.8m points)
To see more, click for the full list of questions or popular tags.
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.6k users

...