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

What are the knowledge points of WeChat Mini Programs's running end?

2025-01-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly explains "what are the knowledge points of WeChat Mini Programs's running end". The content of the explanation in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought and go deep into it slowly. Let's study and learn what are the knowledge points of WeChat Mini Programs!

Javascript & & wxss

WeChat Mini Programs runs on three ends: iOS, Android and developer tools for debugging.

The three ends of the script execution environment cluster and the environment used to render non-native components are different:

On iOS, Mini Program's javascript code runs in JavaScriptCore and is rendered by WKWebView in environments such as iOS8, iOS9 and iOS10

On Android, Mini Program's javascript code is parsed by X5 JSCore, which is rendered by X5 based on Mobile Chrome 37 kernel

On the development tools, Mini Program's javascript code runs in nwjs and is rendered by Chrome Webview

Although the environments at the three ends are very similar, there are some differences:

ES6 syntax support is inconsistent. Syntactically, developers can avoid it by enabling ES6 to ES5. Details

Wxss rendering performance is inconsistent, although most of the problem details can be avoided by enabling style completion, it is recommended that developers need to check the real performance of Mini Program on iOS and Android.

Client trusted domain name verification

In the case of developers using mobile phone code scan debugging, the latest version of the client will not check the trusted domain name after the debug mode is turned on.

Code files must be UTF8 encoded

Only UTF8 encoding format is supported under iOS, and the latest version of the developer tool will check the code file once when uploading the code.

ES6 APi support

WeChat Mini Programs has supported the vast majority of ES6 API specific forms as follows:

Tip: TBS 3.0 refers to the running environment of WeChat Mini Programs Android

Tip: not supported by Array.values

Tip: not supported by Proxy

StringiOS8iOS9iOS10TBS3.0codePointAtnormalizeincludesstartsWithendsWithrepeatString.fromCodePointArrayiOS8iOS9iOS10TBS3.0copyWithinfindfindIndexfillentrieskeysvalues ✘✘ includesArray.fromArray.ofNumberiOS8iOS9iOS10TBS3.0isFiniteisNaNparseIntparseFloatisIntegerEPSILONisSafeIntegerMathiOS8iOS9iOS10TBS3.0truncsigncbrtclz32imulfroundhypotexpm1log1plog10log2sinhcoshtanhasinhacoshatanhObjectiOS8iOS9iOS10TBS3.0isassigngetOwnPropertyDescriptorkeysgetOwnPropertyNamesgetOwnPropertySymbolsOtheriOS8iOS9iOS10TBS3.0SymbolSetMapProxy ✘✘✘ ReflectPromise

Thank you for your reading. the above is the content of "what are the knowledge points of WeChat Mini Programs's operation end". After the study of this article, I believe you have a deeper understanding of what are the knowledge points of WeChat Mini Programs's operation end. The specific use of the situation also needs to be verified by practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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