zoukankan      html  css  js  c++  java
  • 来谈一谈------JavaScript对象

    1.window常用的属性:

       ①history

       ②location

    2.history对象的方法:

      ①back()

      ②forward()

      ③go()

    3.location对象的属性:

      ①host()

      ②hostname()

      ③href()

     

    4.location对象的方法:

      ①reload()

      ②replace()

      

    5.window对象常用的方法:

       ①prompt()

       ②alert()

       ③confirm()

       ④close()

       ⑤open()

       ⑥setTimeout()

       ⑦setInterval()

    6.window对象常用的事件:

      ①onload()

      ②onmouseover()

      ③onclick()

      ④onkeydown()

      ⑤onchange()

    7.document对象的常用属性:

      ①referrer

      ②URL

    8.document对象的常用方法:

      ①getElementById()(用于访问唯一的元素)

      ②getElementsByName()(用于访问相同name属性的一组元素)

      ③getElementsByTagName()(用于访问相同标签的一组元素)

      ④write()

    9.Math的常用方法:

      ①ceil()

      ②floor()

      ③round()

      ④random()

    10.Date对象的常用方法:

      ①getDate()

      ②getDay()

      ③getHours()

      ④getMinutes()

      ⑤getSeconds()

      ⑥getMonth()

      ⑦getFullYear()

      ⑧getTime()

    11.JavaScript中提供了两个定时函数:  setTimeout() 和 setInterval()

                         两个清除函数:  clearTimeout()和 clearInterval()

  • 相关阅读:
    springboot idea新建工程Initialization failed for 'https://start.spring.io' Please check URL, network and proxy settings
    TCP的三次握手与四次挥手理解及面试题
    lambda用法
    深入理解HashMap的扩容机制
    数据库连接池性能测试对比
    SQL
    AOP实现的统一日志处理
    阿里面试1
    汇总
    如果使用association和collection实现层级查询
  • 原文地址:https://www.cnblogs.com/ruyan886621/p/6441434.html
Copyright © 2011-2022 走看看