Home >Web Front-end >uni-app >How to refresh the current page in uniapp

How to refresh the current page in uniapp

coldplay.xixi
coldplay.xixiOriginal
2020-12-16 17:19:5871455browse

How uniapp refreshes the current page: First create uni-app and create a new page file; then add a page jump and create a new back page; then configure the page path; finally save the preview for viewing.

How to refresh the current page in uniapp

The operating environment of this tutorial: windows7 system, uni-app2.5.1 version. This method is suitable for all brands of computers.

Recommended (free): uni-app development tutorial

Uniapp method to refresh the current page:

1. Open HBuilderX development tool, create a uni-app project, and open the project

How to refresh the current page in uniapp

#2. Open the newly created page file, insert navigator in the view tag, and add the url attribute

How to refresh the current page in uniapp

3. Create a new page, add navigator and set the back button

How to refresh the current page in uniapp

4. Open the pages.json file, Put the index configuration at the front

How to refresh the current page in uniapp

5. Save the code and compile it. Open the WeChat development tool and check the interface effect

How to refresh the current page in uniapp

6. Click the forward button, you can find that the interface has jumped and changed

How to refresh the current page in uniapp

7. In the onLoad life cycle function of the backward page, add a location.reload()

How to refresh the current page in uniapp

#Related free learning recommendations:

php programming(video)

The above is the detailed content of How to refresh the current page in uniapp. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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