<!doctype html>
<html>
<body>
<div id = 'div' style = 'width:100px;height:100px;background:#000000;'></div>
<script type = 'text/javascript'>
document.getElementById('div').addEventListener('click',happen(),true);
function happen()
{
alert(1)
}
</script>
</body>
</html>
上記のコードでは、ページが読み込まれたときにイベントがトリガーされ、div をクリックしたときにトリガーされないのはなぜですか...また、正しいイベント名のクリックまたはオンクリックです....