摘要: 创建一个节点 window.onload=function(){ var demo=document.getElementById("demo"); //获取第一个按钮索引为0 var btn=document.getElementsByTagName("button")[0]; //按钮鼠标事件 阅读全文