Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure web view

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Most people do not understand the knowledge points of this article "how to configure web view", so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can gain something after reading this article. Let's take a look at this "how to configure web view" article.

# first of all, give a brief introduction to web-view. Friends who have seen the official api can automatically ignore it and go directly to-configuration steps-to introduce the features.

The web-view component is a container that can be used to host web pages and automatically covers the entire Mini Program page.

Similar to Frame, Iframe, Frameset tags, but for now, web-view is still inflexible, but I believe many people are satisfied (if I have to complain, I just want to say that web-view is not born at my time. Forget it, a handful of bitter tears)

Usage and post-configuration restrictions

Personal and overseas Mini Program is not supported for the time being.

Restrictions on js-sdk APIs (for more information, please see the official api).

There can be only one page.

< web-view />

.

You can add up to 20 business domain names.

The business domain name can only be modified 50 times a year.

Web-view sample code configuration step 1. Configure business domain name 2. Select the basic library ①-configure the business domain name ②-select the basic library

This step is the simplest, but it is true that many friends are the easiest to ignore (ahem.), developer tools-- > details Settings-- > Select version 1.6.4 or above (currently only 1.6.4 is supported).

Summary:

The above is the simple configuration process of web-view. Most of the content has been given by the official api of Mini Program. Here, the steps of the configuration process are further detailed and become a little more popular, but if you need to do something on the H6 page.

Let's take a look at the official example: fast track.

< script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.0.js">

/ / javascript wx.miniProgram.navigateTo ({url:'/ path/to/page'}) / / encapsulate here and you can jump.

Note: if you encounter the situation that the debugging tool starts web-view normally and the mobile Wechat cannot be opened, don't worry, just upgrade the Wechat version, and do the compatibility of the lower version in the actual project. )

The above is the content of this article on "how to configure web view". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report