看板 Flash 關於我們 聯絡資訊
我想要避免mc被重複addEventListener 所以在mc.data塞了變數用true,false來代表是否已經addEventListener 是否有function可以檢查,而不用像我這樣手動塞變數呢? 例如: if (mc.addEventListener還沒註冊){ mc.addEventListener(.....,.....); } -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 112.104.149.111
etrexetrex:http://goo.gl/q0u7M 01/03 09:57
感謝你,我關鍵字google一直找不到這個資訊,應該是關鍵字太弱了 ※ 編輯: Qiqi 來自: 112.104.149.111 (01/03 11:33)
bruce620:hasEventListener 01/03 23:53