JSFiddle - React, Tailwind, and code Playground
by yakun chen
HTML
<script src="https://getfirebug.com/firebug-lite-debug.js"></script>
<button>click me</button>
JavaScript
document.querySelector('button').addEventListener('click',function(event){
/* 当 <div> 被点击时,输出 '<div>',因为 <div> 是事件过程中的目标 */
console.log(event.target+"/ "+this);
}, false);