摘要: JS操作元素事件 1.直接在标签里面添加事件属性:参数this(代表当前元素对象),字符串拼接,转义字符(/‘/') 2.Dom.onClick=function(){} 3.dom.addEventListener(事件名,方法名);//同是操作多个事件 dom.removeEventListener(方法名);//移除事件属性 JS操作元素添加删除 document.crea... 阅读全文
posted @ 2018-07-27 16:17 Prinlily 阅读(119) 评论(0) 推荐(0) 编辑