memo
addEventListener( type, listener, useCapture )
type
- [Event] change,error,focus,load,readystatechange,reset,resize,scroll,select,submit,unload
- [MouseEvent] click,dblclick,mousedown,mousemove,mouseout,mousemove,mouseup
- [KeyboardEvent] keydown,keypress,keyup
listeneruseCapture
- true,false
addEventListenerした無名関数をremoveする方法
element.addEventListener( 'click', function(){...}, false ); element.removeEventListener( 'click', arguments.callee, false );
ログ
JavaScript側
function DEBUG_LOG( str ) { var out = document.getElementById( "debuglog" ); if( out ) { out.value += str; } }
html側
<textarea readonly cols="50" rows="5" id="debuglog"></textarea>
links
- enchant.js
- jsdo.it
- 9leap
- Events in JavaScript / Dottoro
Last modified 2013-08-01 11:37:21