推 STARGAZERs:筆記~ 原來 this 可以這樣用... 一直搞不太清楚他 08/31 17:11
推 dsmwang:存取屬性或方法可以用.字元也可以用[],只要是不確定要用 08/31 18:13
→ dsmwang:哪個的都只能用[]抓字串~ 08/31 18:14
→ diabloevagto:用[]的好像是在不是很確定呼叫的才要用 08/31 20:10
推 etrexetrex:樓上說的是什麼我看不懂 可以解釋一下嗎~ 08/31 20:14
推 justaID:原來this除了變數也可以用在函數@@ 受教了~ 08/31 21:05
推 STARGAZERs:我在 .as 的 class 裡面用 this["a"+i] 失敗 Orz 09/01 14:49
→ aquarianboy:你得先知道"this"是什麼意思... 09/01 15:11
推 etrexetrex:what is this? 09/01 16:05
→ aquarianboy:this is a book :) 09/01 17:44
→ dsmwang:this好像通常是指發出這個指令的class 09/01 20:56
推 etrexetrex:程式是寫在 Class 裡 09/01 21:07
→ etrexetrex:this 是指 Class的實體 09/01 21:08
→ etrexetrex:我講不清楚 QQ 實體是指a var a:某C = new 某C(); 09/01 21:09
→ etrexetrex:某C是某個Class 09/01 21:09
→ etrexetrex:this 是在 Class 中代表自己的參考 09/01 21:09
→ etrexetrex:在某C這個 Class 中稱呼自己為 this 09/01 21:10
→ etrexetrex:QQ 我盡力了 有人看得懂嗎~ 09/01 21:10
推 dsmwang:看得懂幫推 09/01 21:14
推 Angelliya:懂得幫推 09/01 23:49
→ MOONRAKER:this是物件,actionscript中把hash array當成物件用 09/02 17:19
→ MOONRAKER:所以用this[{函式名}]可以抓到成員函式的ref 09/02 17:20
→ MOONRAKER:但是好一點的寫法當然如下篇,使用func array 09/02 17:20