js中的this指针的用法

前面把js的相关知识总结了下,今天把js中的上下文的this,对于强类型语言,this的用法非常的单一,因为他们没有js特有的动态绑定。     首先看下面代码:      function funcA() { this.name = "hello"; console.log(this.name); this.show = function() { cons
相关文章
相关标签/搜索