可以使用下面的两种方法为button对象添加点击事件:方法1:var btn = document.getElementById(“btn”);btn.onclick = function(){alert(“HelloWorld”) ...
確定! 回上一頁