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

How to print highlighted code in nodejs console

Preface When the code runs and an error occurs, w...

How to implement blank space in Taobao with CSS3

Make a blank space for Taobao: When you shrink th...

Detailed explanation of using scp command to copy files remotely in Linux

Preface scp is the abbreviation of secure copy. s...

Implementation and optimization of MySql subquery IN

Table of contents Why is IN slow? Which is faster...

IE6 space bug fix method

Look at the code: Copy code The code is as follows...

A brief discussion on several ways to implement front-end JS sandbox

Table of contents Preface iframe implements sandb...

Table related arrangement and Javascript operation table, tr, td

Table property settings that work well: Copy code ...

How to Monitor Linux Memory Usage Using Bash Script

Preface There are many open source monitoring too...

CSS code for arranging photos in Moments

First, you can open Moments and observe several l...

Solution to the gap between divs

When you use HTML div blocks and the middle of th...

Use of Vue3 pages, menus, and routes

Table of contents 1. Click on the menu to jump 1....

Nginx implements https website configuration code example

https base port 443. It is used for something cal...

Build a Docker private warehouse (self-signed method)

In order to centrally manage the images we create...