Skip to content
This repository was archived by the owner on Sep 9, 2019. It is now read-only.

Latest commit

 

History

History
48 lines (44 loc) · 1.31 KB

File metadata and controls

48 lines (44 loc) · 1.31 KB

JavaScript 对象

  • 浏览器对象模型(BOM)

    • window对象(refresh、alert、prompt、confirm)
    • *window.onload = function ()
    • Navigator对象(获取浏览器UA)
    • Screen对象(获取屏幕分辨率、浏览器分辨率)
    • History对象(返回栈)
    • Location对象(地址栏URL解析)
  • 文档对象模型(DOM)

    • document对象
  • JavaScript内建对象

    • 数学对象(Math)
      • Math.ceil()
      • Math.floor()
      • Math.round()
      • Math.random()
      • Math.max()
      • Math.min()
    • 日期对象(Date)
    • 定时器
      • setInterval、clearInterval
      • setTimeout、clearTimeout
    • 字符串对象(String)
      • indexOf()
      • lastIndexOf()
      • substr()
      • slice()
      • spilt() // 反join()
      • search()
      • match()
      • replace()
      • toUpperCase()/toLowerCase()
    • 数组对象(Array)
      • join()
      • pop()
      • push()
      • shift()
      • unshift()
      • reverse()
      • concat()
      • slice()
      • sort(fn)
  • 正则表达式(RegExp)