這樣為什么錯
直接這樣改,按鈕顏色為什么不能變function bgys() {this.style.backgroundColor='yellow';} 為什么不能設(shè)置屬性Uncaught TypeError: Cannot set property 'backgroundColor' of undefined 這樣寫都能改求解
直接這樣改,按鈕顏色為什么不能變function bgys() {this.style.backgroundColor='yellow';} 為什么不能設(shè)置屬性Uncaught TypeError: Cannot set property 'backgroundColor' of undefined 這樣寫都能改求解
2015-08-08
舉報
2015-08-10
算了,,,不管這個了,,
2015-08-10
this指的是哪個?