不知道报错原因,先记录下来。
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
</head>
<body>
<input type="button" id="btn" value="btn"/>
<script>
document.body.onclick = function(event){
console.log(event.currentTarget); //<body>...</body>
}
</script>
</body>
</html>

报错信息:

浙公网安备 33010602011771号