foreword
This article will split from 0 to 1, step by step, and introduce in detail how to implement this function.
This requirement is very common in small programs, as shown in the following figure:
first step
First, there needs to be a page
app.json → page[]
, properly registered in , that hosts thewebview
component.
Create a new page in the page
directory (the same method as creating a normal page), as shown in the following figure:
second step
The settings
webview
page is used to receive the webpage link of the business jump.
Open the file you just created, you just need to move the wxml / js
file and copy the following code:
<web-view
src