• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






rellay

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2016年3月1日

函数getElementsByClassName
摘要: 记录学习JavaScript中遇到的知识点 函数getElementsByClassName()的具体实现: 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>JavaScript Exercises.</ti 阅读全文
posted @ 2016-03-01 16:26 rellay 阅读(190) 评论(0) 推荐(0)
 
阻止ie、chrome中的事件冒泡和监听函数的覆盖问题
摘要: 记录学习JavaScript中遇到的知识点 1、目标实现<div id="wrapper"><input type="button" value="Click me." id="btn" /></div>中,单击div区域提示"这是div",而单击btn按钮提示"这是input"。首先通过下面代码操 阅读全文
posted @ 2016-03-01 14:06 rellay 阅读(807) 评论(0) 推荐(0)