js监听点击事件
document.getElementById("myBtn").addEventListener("click", function(){document.getElementById("demo").innerHTML = "Hello World";});
·
document.getElementById("myBtn").addEventListener("click", function(){
document.getElementById("demo").innerHTML = "Hello World";
});
更多推荐
已为社区贡献1条内容
所有评论(0)