首页 > 其他分享 >每日总结 5.5

每日总结 5.5

时间:2023-05-05 19:11:17浏览次数:36  
标签:总结 5.5 每日 载入 点击 重新 刷新 页面

今天学习了HTML页面的刷新。

<a href="javascript:location.reload();">点击重新载入页面</a>

<a href="javascript:history.go(0);">点击重新载入页面</a>

<a href="javascript:location=location;">点击重新载入页面</a>

<a href="javascript:location=location.href;">点击重新载入页面</a>

<a href="javascript:location.replace(location);">点击重新载入页面</a>

<a href="javascript:location.replace(location.href);">点击重新载入页面</a>

<a href="javascript:location.assign(location);">点击重新载入页面</a>

<a href="javascript:location.assign(location.href);">点击重新载入页面</a>

 

 

<a href="javascript:document.URL=location.href;">点击重新载入页面</a>

<a href="javascript:navigate(location);">点击重新载入页面</a>

<a href="javascript:document.execCommand('Refresh');">点击重新载入页面</a>

<script>

function reloadPage(){

window.location.reload();

}

</script>

<input type="button" value="重新加载页面" οnclick="reloadPage()" />

 

 

<a href="">点击重新载入页面</a>

<a href="页面本身">点击重新载入页面</a>

三、实现html页面自动刷新

1. 页面自动刷新:

<meta http-equiv="refresh" content="10">

注:content="10"其中的数字表示刷新间隔的秒数

2.跳转到指定页面:

<meta http-equiv="refresh" content="10;url=你的网站地址">

3.页面自动刷新js版:

<script language="JavaScript">script">

setTimeout(function(){location.reload()},1000); //指定1秒刷新一次

</script>

标签:总结,5.5,每日,载入,点击,重新,刷新,页面
From: https://www.cnblogs.com/syhxx/p/17375136.html

相关文章

  • 每日总结2023-05-04
    Servlet获取参数值使用request.getParameter(“参数名”),返回结果为String,若需要其他数据类型需要用Integer,Double等包装类进行类型转换例如:publicvoidservice(HttpServletRequestrequest,HttpServletResponseresponse)throwsServletException,IOException......
  • 每日总结2023-05-05
    Android加载界面  activity_main.xml<?xmlversion="1.0"encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"......
  • RestHighLevelClient 使用总结
    .index接口--新增/更新索引,内容更新是覆盖式的.update接口--更新索引,支持局部字段的更新,相对.index接口相比,减少了没有必要的字段更新 相关文档:https://zhuanlan.zhihu.com/p/551414799......
  • 每日打卡一小时(第十九天)(空)未完
    一.问题描述6-3【CPP0024】设计并实现大数类BigNum定义一个整数型大数类,要求能够完成100位以内的较大整数的加法和减法计算,main(void)函数完成对其的测试。BigNum类结构说明: BigNum类的数据成员包括:①私有数据成员:数值域num(char[]型)。BigNum类成员函数包括:①有参构造......
  • Prometheus-Operator使用ServiceMonitor监控配置时遇坑与解决总结
    摘要本文范围:Prometheus-Operator&kube-prometheus安装;以及在解决使用ServiceMonitor时遇到的坑。PrometheusOperator简介随着云原生概念盛行,对于容器、服务、节点以及集群的监控变得越来越重要。Prometheus作为Kubernetes监控的事实标准,有着强大的功能和良好的生态......
  • Java8之UnaryOperator总结
    在Java8中,UnaryOperator是一个参数接口,它继承自Function,UnaryOperator接收一个参数,返回和参数同样类型的结果,其实相当于对数据做了加工。@FunctionalInterfacepublicinterfaceUnaryOperator<T>extendsFunction<T,T>{}UnaryOperator作为参数importjava.util.Array......
  • 5.5
    #include<stdio.h>main(){longn,sum,i;while(scanf("%ld",&n)!=EOF){printf("在1-%ld之间的阶梯数为:\n",n);sum=0;for(i=7;i<=n;i++)if(i%7==0)if(i%6==5)if(i%5==4)if(i%3==2){sum++;printf("%ld\n",i);}printf("在1-%ld之间,有%ld个......
  • Wpf Datagrid 操作总结
    1.行选中时,.SelectedIndex可以获取行索引2.单元格选中时,获取行索引可以用以下(Grid为DataGrid的对象)DataGridCellInfoselectedCell=Grid.SelectedCells.FirstOrDefault();//没有选中Recordif(selectedCell==null||selectedCell.Column==null)return;intinde......
  • 2023.5.5 面向对象程序设计实验报告
    实验项目名称:模板一、实验目的1、熟练掌握函数模板和类模板的定义格式。2、熟练运用函数模板和类模板解决实际问题。二、实验内容1、复数类Complex有两个数据成员:a和b,分别代表复数的实部和虚部,并有若干构造函数和一个重载-(减号,用于计算两个复数的距离)的成员函数。要求设计......
  • 每日一练 | 华为认证真题练习Day37
    1、缺省情况下,STP协议中的端口状态由Disabled转化为forwarding状态至少需要30s的时间。A.对B.错2、在路由表中存在到达同一个目的网络的多个NextHop,这些路由称之为?A.等价路由B.默认路由C.多径路由D.次优路由3、OSPF协议在以下哪种网络类型中需要选举DR和BDR?(多选)A.点到点类型......