• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
qiqi105
博客园    首页    新随笔    联系   管理    订阅  订阅
2017年9月7日
scroll兼容性
摘要: document.html=>document.documentElement function scroll() { if(window.pageYOffset != null) // ie9+ 和其他浏览器 { return { left: window.pageXOffset, top: wi 阅读全文
posted @ 2017-09-07 16:29 qiqi105 阅读(221) 评论(0) 推荐(0)
面向对象的程序设计(二)理解各种方法和属性typeof、instanceof、constructor、prototype、__proto__、isPrototypeOf、hasOwnProperty
摘要: //理解各种方法和属性typeof、instanceof、constructor、prototype、__proto__、isPrototypeOf、hasOwnProperty、 //1、typeof方法 获取变量的类型,返回:number, string, undefined, object, 阅读全文
posted @ 2017-09-07 11:55 qiqi105 阅读(112) 评论(0) 推荐(0)
js基础
摘要: 1.1 client 家族 client 可视区域 offsetWidth: width + padding + border (披着羊皮的狼) clientWidth: width + padding 不包含border scrollWidth: 大小是内容的大小 1.1.1 检测屏幕宽度(可视区 阅读全文
posted @ 2017-09-07 08:36 qiqi105 阅读(96) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3