How to implement back force refresh on WeChat web side

php中世界最好的语言
Release: 2018-03-17 11:47:31
Original
2513 people have browsed it

This time I will show you how to implement a forced refresh on the WeChat web side and how to implement a forced refresh on the WeChat web side.The specific code is as follows:

Copy after login

•The

history object

in h5 used by the android side,history.replaceState(null, null, "/currentURL ?a="+uuid());Change the current url (splicing a uuid or random number) after the page is loaded, so that every time you go back, the browser finds that the current url does not exist in the browser cache. Will go to reload.•But the ios side does not support the above method, so I used a piece of jquery code to solve it.
I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the php Chinese website!

Recommended reading:

Use js to quickly get the address of the image in the html page

How to use the React BootStrap framework

Set cookie expiration, automatic update and automatic acquisition

react native uses fetch to upload images

Use import and require Packaging JS

The above is the detailed content of How to implement back force refresh on WeChat web side. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!