Home> Web Front-end> uni-app> body text

How to refresh the current page in uniapp

coldplay.xixi
Release: 2020-12-17 10:22:23
Original
71174 people have browsed it

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 alocation.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!

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!