摘要: 事件绑定 我们一般使用的是bind()方法 bind()方法有3个参数: 第一个参数是事件类型,包括 blur、focus、load、resize、scroll、unload、click、dblick、 mousedown、mouseup、mousemove、mouseover、mouseout、mouseenter、mouseleave、change、 select、submit、ke... 阅读全文
posted @ 2016-05-23 17:45 Light.Elegant 阅读(247) 评论(1) 推荐(1) 编辑
摘要: 题目中“鼠标离开文本框时”说明焦点失去了,而选项中失去焦点的只有B,所以选B A选项多了h2标签。 B选项应该是 $("#top1") D选项应该是 $("div #top1") A有语法错误,B,C不存在 只有D语法正确 因为C是后代选择器 onfocus 元素获得焦点 onblur 元素失去焦点 阅读全文
posted @ 2016-05-23 16:32 Light.Elegant 阅读(138) 评论(0) 推荐(0) 编辑