How to jump to h5 in a small program

藏色散人
Release: 2020-03-20 09:37:28
Original
5592 people have browsed it

How to jump to h5 in a small program

How to jump to h5 in a small program?

Since the mini program officially does not provide an API for external H5 web pages to jump directly to the mini program, currently only the embedded H5 in the mini program is supported, and only the embedded H5 can jump back to the mini program

Mini program jump to H5

You need to use the web-view of the mini program,

Official link: https://developers.weixin .qq.com/miniprogram/dev/component/web-view.html

web-view is a container that hosts web pages. It will automatically fill the entire mini program page, and personal mini programs are not supported for the time being. The writing method is as follows:

<view class="page-body">
    <web-view src="https://xxx.com/test.html"></web-view>
</view>
Copy after login

Note: When "{"base_resp":{"ret":-1}}" is returned in the WeChat development tool, you need to click "Settings"-"Project Settings" in the upper left corner "--Check "Do not verify legal domain name, web-view (business domain name), TLS version and HTTPS certificate"

How to jump to h5 in a small program

The above is the detailed content of How to jump to h5 in a small program. 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
Popular Tutorials
More>
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!