..."; then in the WeChat development tool, Click "Settings" - "Project Settings"; finally check "Do not verify legal domain names"."/> ..."; then in the WeChat development tool, Click "Settings" - "Project Settings"; finally check "Do not verify legal domain names".">
Home > Article > WeChat Applet > 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>
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"
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!