addEventListener 与 onclick

var h = document.getElementById("a");
h.onclick = dothing1;
h.addEventListener("click", dothing2);

答案