In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to solve if WeChat Mini Programs's HTTPS request is not successful". In daily operation, I believe many people have doubts about how to solve the problem if WeChat Mini Programs's HTTPS request is not successful. The editor has consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "WeChat Mini Programs HTTPS request is not successful". Next, please follow the editor to study!
Cannot operate Page.data directly
To avoid directly modifying the Page.data assignment, use Page.setData to synchronize the data to the page for rendering
How to get user input
For a component that can get user input, you need to use the component property bindchange to synchronize the user input to AppService
Var inputContent = {} Page ({data: {inputContent: {}}, bindChange:function (e) {inputContent [e.currentTarget.id] = e.detail.value}}) Why window objects cannot be used in scripts
The script logic of the page runs in JsCore. JsCore is an environment without window objects, so you cannot use window in a script or manipulate components in a script.
Why zepto/jquery can't be used
Zepto/jquery uses window objects and document objects, so it cannot be used.
Wx.navigateTo could not open the page
An application can only open five pages at a time, and wx.navigateTo cannot open a new page normally after it has already opened five pages. Avoid multiple levels of interaction, or use wx.redirectTo
Stylesheets do not support cascading selectors
WXSS supports. The class selector that starts. Such as:
.normal _ view {color: # 000000; padding: 10px;}
You can use the tag selector to control the style of the same type of component. For example, use the default style controlled by the input tag selector.
Input {width: 100px;} Local resources cannot be obtained through WXSS
Background-image: you can use web pictures, or base64, or use tags
How to modify the background color of a window
You can change the style of the top-level node using the page tag selector
Page {display:block; min-height:100%; background-color:red;} HTTPS request was not successful
Tls only supports version 1.2 and above.
Some Android models require tls1.0 or tls1.1, so make sure the tls version of the server is 1.0,1.1,1.2
Referer of the network request
The referer of a network request cannot be set, and the format is fixed as https://servicewechat.com/{appid}/{version}/page-frame.html, where {appid} is the appid of Mini Program, {version} is the version number of Mini Program, 0 indicates the development version, trial version and audit version, the version number devtools indicates the developer tool, and the rest is the official version.
Why are map components always at the top?
Map, canvas, video, and textarea are native components created by the client, and the native components are at the highest level, so no matter how much z-index is set to other components on the page, they cannot be covered on the native components. Native components cannot be placed on scroll-view for the time being, nor can they be animated with css.
At this point, the study on "how to solve the unsuccessful request of WeChat Mini Programs HTTPS" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.