在微信浏览器里使用js或jquery实现页面重新刷新
2024-08-31 22:50:41
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
最新文章
- jquery网页可见区域宽
- 算法實例-C#-信箱排序-PigeonHoleSort
- NODE.JS开发指南学习笔记2
- Python开发入门与实战12-业务逻辑层
- 嵌入式linux自动登录
- https SSL主流数字证书都有哪些格式?
- MyEclipse 2015优化技巧
- 《OD学oozie》20160813
- c++中指针类型在c#中怎么对应?
- 【转载】Hadoop历史服务器详解
- httpClient无证书访问
- banner | what is the ";banner"; ?
- Javascript高级编程学习笔记(45)——DOM 操作表格及DOM动态集合
- CentOS7开启docker远程访问并在idea中连接使用
- 重置BizTalk RosettaNet
- 关于multi-index
- debian及ubuntu挂载本地硬盘的ISO镜像文件
- winform窗体this方式和handle(句柄)方式的区别
- ASP.NET Core中使用自定义路由
- html常见兼容性问题
热门文章
- UVA 1564 - Widget Factory(高斯消元)
- Stacks of Flapjacks
- 适合前端开发的 Chrome 扩展有哪些?(十款)
- try catch finally中的return
- Spring MVC出现POST 400 Bad Request &;405 Request method &#39;GET&#39; not supported
- 巧用redis位图存储亿级数据与访问 - 简书
- Arcgis api for javascript学习笔记(4.5版本)-三维地图的飞行效果
- Heterogeneous Self-Organizing Network for Access and Backhaul
- 数据集成工具:Teiid实践
- jQuery插件开发小总结