js中this用法(1)

this的用法非常的单一,因为他们没有js特有的动态绑定。 function funcA() { this.name = "hello"; console.log(this.name); this.show = function() { console.log(this.name); } } funcA();// 1、hello var a = ne
相关文章
相关标签/搜索