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 This

0 votes
947 views
1 answer
    Suppose I have JavaScript code like myClass = function(){ function doSomething(){ alert(this); // this1 } } alert( ... those two 'this' objects are refer for?? Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
899 views
1 answer
    The problem in example 1 is 'this' referring to the global name instead of the myName object. I understand the use ... ("example 3: " + storeMyName3); // works Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
914 views
1 answer
    (function(){ var a = 11111; console.log(this.a); var Test = function(a){ this.a = a; } Test.prototype.geta=function(){ ... getaaa()中 this 指向的是 window 但是为什么 this.a 为什么是 undefined...
asked Feb 6, 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

...