随笔 - 11  文章 - 2  评论 - 1
摘要: 阻止事件冒泡的三种手段 1、return false:可以阻止默认事件和冒泡事件 2、event.stopPropagation/IE下event.cancelBubble = true;:可以阻止冒泡事件但是允许默认事件 3、event.preventDefault();/IE下event.ret 阅读全文
posted @ 2016-01-10 13:53 Double405 阅读(1205) 评论(0) 推荐(0) 编辑
摘要: HTML 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset=" utf-8"> 5 <meta name="author" content="/" /> 6 <title>点击实现下拉菜单的隐藏与显示</title> 7 <script src= 阅读全文
posted @ 2016-01-10 13:21 Double405 阅读(4270) 评论(0) 推荐(0) 编辑