javascript中的this指向問題(2)

var color = "orange"; window.color = "red"; var person = { color:"blue" }; function sayColor(){ var color = "pink"; console.log(this.color); } person.sayColor = sayColor; person.sayColor.ca
相關文章
相關標籤/搜索