function refresh() {
var random = Math.floor((Math.random() * 10000) + 1);
var url = decodeURI(window.location.href);
if (url.indexOf('?') < 0) {
url = url + "?random" + random;
} else {
url = url.substr(0, url.indexOf('?random')) + "?random" + random;
}
window.location.href = url;
}
---------------------
来源:CSDN
原文:https://blog.csdn.net/qq_25030259/article/details/80519633

最新文章

  1. jquery网页可见区域宽
  2. 算法實例-C#-信箱排序-PigeonHoleSort
  3. NODE.JS开发指南学习笔记2
  4. Python开发入门与实战12-业务逻辑层
  5. 嵌入式linux自动登录
  6. https SSL主流数字证书都有哪些格式?
  7. MyEclipse 2015优化技巧
  8. 《OD学oozie》20160813
  9. c++中指针类型在c#中怎么对应?
  10. 【转载】Hadoop历史服务器详解
  11. httpClient无证书访问
  12. banner | what is the &quot;banner&quot; ?
  13. Javascript高级编程学习笔记(45)——DOM 操作表格及DOM动态集合
  14. CentOS7开启docker远程访问并在idea中连接使用
  15. 重置BizTalk RosettaNet
  16. 关于multi-index
  17. debian及ubuntu挂载本地硬盘的ISO镜像文件
  18. winform窗体this方式和handle(句柄)方式的区别
  19. ASP.NET Core中使用自定义路由
  20. html常见兼容性问题

热门文章

  1. UVA 1564 - Widget Factory(高斯消元)
  2. Stacks of Flapjacks
  3. 适合前端开发的 Chrome 扩展有哪些?(十款)
  4. try catch finally中的return
  5. Spring MVC出现POST 400 Bad Request &amp;405 Request method &#39;GET&#39; not supported
  6. 巧用redis位图存储亿级数据与访问 - 简书
  7. Arcgis api for javascript学习笔记(4.5版本)-三维地图的飞行效果
  8. Heterogeneous Self-Organizing Network for Access and Backhaul
  9. 数据集成工具:Teiid实践
  10. jQuery插件开发小总结