2017-04-10 62 views
0

我需要知道,如果是可能的監測活動,並得到像這樣是否可能監視html元素中的事件?

點擊按鈕「澤塔」

或類型鍵標籤「HHH」 especific HTML元素結果

它可能這個

請幫我

我用的顯示器monitorEvents($ 0),但只得到座標事件

+0

解決看一看[的addEventListener()](https://www.w3schools.com/jsref/met_document_addeventlistener.asp) – xhg

回答

0

我與此

 $('body').on("click mousedown mouseup focus blur keydown change mouseup click dblclick mousemove mouseover mouseout mousewheel keydown keyup keypress textInput touchstart touchmove touchend touchcancel resize scroll zoom focus blur select change submit reset",function(e){ 
console.log(e); 
     }); 
相關問題