The use of “this” is confusing me in JavaScript

后端 未结 5 397
既然无缘
既然无缘 2020-12-04 13:38

Working with the JavaScript one of the confusing thing is when using this

var x = {  
  ele : \'test\',
  init : function(){ 
    alert(this.ele)         


        
5条回答
提交回复
热议问题