javascript中的this做用域详解——针对初学者

//#######针对一名初学者对this的指向问题的理解######### //1.全局的函数调用 function test(){ this.name="global this" console.log(this.name) } test(); //global this var name="global this" function test(){ console.
相关文章
相关标签/搜索