摘要: 事件基础 绑定事件 把事件当做HTML元素的属性 <button onclick="code..."> 把事件当做dom对象的方法 dom.onclick = function(){code....} 事件监听方式 IE9+ addEventListener(eventName, fn, true/ 阅读全文
posted @ 2017-09-01 16:28 半个句号 阅读(148) 评论(0) 推荐(0)