logoner

html 刷新 按钮 代码

<input type=button value=刷新 onclick="history.go(0)">

<input type=button value=刷新 onclick="location.reload()">

<input type=button value=刷新 onclick="location=location">

<input type=button value=刷新 onclick="window.navigate(location)">

<input type=button value=刷新 onclick="location.replace(location)">

 

这是从百度知道找到的,都是实现了显示刷新按钮,实现的F5功能,但是不知道区别在哪里,等我研究出来区别在补充完整

分类:

技术点:

相关文章:

  • 2021-12-19
  • 2022-12-23
  • 2021-12-26
  • 2021-08-23
  • 2021-12-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2021-12-19
  • 2021-10-07
  • 2021-12-19
相关资源
相似解决方案