zoukankan      html  css  js  c++  java
  • BOM:文档对象模型 --树模型

    延时:  

       window.setTimeout("sto",3000);    //3000毫秒

       function sto(){

          alert('123');

       window.setTimeout("sto",3000);   //递归   

       }

    每隔段时间发发生一次:

       window setInterval("alert('123')",3000);   //逐次累加,返回值123456……   

       window clearInterval(1);      //暂停   定义多组数据  用数组遍历的方式使他们全部暂停

    页面跳转:   

      1、window.location.href = "";  

      2、window.navigate('');      //ie专用 

      3、window.open('地址','打开方式(_blank新窗口打开;_self本窗口打开)','控制打开窗口')

    页面刷新:   

      window.location.reload();

    页面滚动:   

      window.scrollTo( , );   //指向坐标

      window.moveTo(x,y); 移动页面

      window.resizeTo(宽,高); 调整页面

      window.scrollTo(x,y);滚动页面至哪里

  • 相关阅读:
    SpringBoot
    SpringBoot
    MySQL
    Database
    Database
    MySQL
    Debug
    《mysql必知必会》学习_第18章
    C#中访问私有成员
    精彩语录收集
  • 原文地址:https://www.cnblogs.com/gonghuixin/p/6755150.html
Copyright © 2011-2022 走看看