A brief discussion on VUE uni-app's commonly used APIs

A brief discussion on VUE uni-app's commonly used APIs

1. Routing and page jump

uni.navigateTo(OBJECT)

Keep the current page and jump to a page in the application. Use uni.navigateBack to return to the original page. uni.redirectTo(OBJECT)

Close the current page and jump to a page in the app. uni.reLaunch(OBJECT)

Close all pages and open a page in the app. uni.switchTab(OBJECT)

Jump to the tabBar page and close all other non-tabBar pages. uni.navigateBack(OBJECT)

Close the current page and return to the previous page or multiple pages. You can use getCurrentPages() to get the current page stack and decide how many levels to return.

2. Interface

Interactive Feedback

a. uni.showToast(OBJECT)

Displays a message prompt box.

Summarize

This article ends here. I hope it can be helpful to you. I also hope you can pay more attention to more content on 123WORDPRESS.COM!

You may also be interested in:
  • A brief discussion on VUE uni-app conditional coding and page layout
  • A brief discussion on VUE uni-app custom components
  • A brief introduction to VUE uni-app basic components
  • A brief discussion on VUE uni-app template syntax
  • A brief discussion on the VUE uni-app development environment
  • A brief introduction to VUE uni-app core knowledge
  • A brief discussion on the VUE uni-app life cycle

<<:  VMware15/16 Detailed steps to unlock VMware and install MacOS

>>:  HTML Table Tag Tutorial (47): Nested Tables

Recommend

HTML table tag tutorial (31): cell width and height attributes WIDTH, HEIGHT

By default, the width and height of the cell are ...

Install and configure ssh in CentOS7

1. Install openssh-server yum install -y openssl ...

Specific example of MySQL multi-table query

1. Use the SELECT clause to query multiple tables...

Detailed analysis of each stage of nginx's http request processing

When writing the HTTP module of nginx, it is nece...

Detailed tutorial on installing mysql 8.0.20 on CentOS7.8

1. Install MySQL software Download and install My...

Vertical and horizontal splitting of MySQL tables

Vertical Split Vertical splitting refers to the s...

How to open a page in an iframe

Solution: Just set the link's target attribute...

The difference between html Frame, Iframe and Frameset

10.4.1 The difference between Frameset and Frame ...

Webpack builds scaffolding to package TypeScript code

Create a folder Directory structure: dabaots Init...

Windows platform configuration 5.7 version + MySQL database service

Includes the process of initializing the root use...

How to control the proportion of Flex child elements on the main axis

background Flex layout achieves alignment and spa...

Ideas and practice of multi-language solution for Vue.js front-end project

Table of contents 1. What content usually needs t...

React antd realizes dynamic increase and decrease of form

I encountered a pitfall when writing dynamic form...