摘要: var pet={ word:'...', speak:function(say){ console.log(say+' '+this.word) } } //pet.speak('speak')//speak ... var dog={ word:'wang' } //改变this到dog上 pet.speak.call(dog,'speak')... 阅读全文
posted @ 2018-07-04 17:18 chenlw101 阅读(126) 评论(0) 推荐(0) 编辑