在微信浏览器里使用js或jquery实现页面重新刷新


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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM