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 common problems in WeChat Mini Programs's development?

2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly introduces what are the common problems in WeChat Mini Programs's development, which can be used for reference. I hope you can learn a lot after reading this article.

1.scroll-view has bug on iOS

When using this component to develop a page, due to its own scrolling effect, when sliding on the Y axis triggers the native rubber band effect of iOS, the scroll-view has a non-slippery bug, which is not available without the rubber band effect in the Android system. Now the latest version 0.11.122100, if it still exists, it will be handled by the next version.

two。 Invalid focus of input in Wechat 6.3.31

In the Mini Program update log to resolve the

2016-12-22 Update Log

1.F fix the problem of emptying the content when the component loses focus on the developer tool

3. When iOS uses navigation to jump to a page, there is an occasional white bug.

Officials already know that it will be fixed in a later version.

4.tabBar icons vary in size across platforms

Officials already know that it will be fixed in a later version.

The modified bug is returned to the navigation bar on 5.iOS.

The problem with tabBar is officially known. In the next version, switchTab interface will be added to allow developers to directly control the switching of tabBar.

6. The map overlay cannot add a click event, unable to get the coverage that the user clicked on

Officials already know that it will be fixed in a later version.

7. Can Mini Program support webview in disguise?

Not supported

After 8.Android Wechat updates to 6.3.32, it is not supported to jump from a normal page to a page with a tab column.

The new version will have a special API to jump to the tabbar page, and there will be logic problems with the previous handling.

How to realize round robin by 9.swiper

The current version has the circular attribute support

10. Problems occur when you quickly click on multiple input

This problem is officially fixed, waiting for the release

11. When debugging, WXML often appears blank.

Has been fixed and the next version of the development tool will be updated

Event penetration occurs when 12.scroll-view overlaps

The official will fix it later.

Under 13.Android, the border of 1rpx may not be displayed.

There is a problem of incomplete rpx display of decimal values in some Android phones. The new version of Wechat will fix this problem.

14. Can you open ordinary web links from mini programs?

Not supported at this time

There is textarea in 15.scroll-view and its content cannot be changed.

The official does not support it at present.

Write CSS 3 animation in 16.WXSS file. Click to compile and report an error directly. The compilation failed.

At present, Mini Program supports very few css3 attributes, while officials support more css3 attributes in later stages.

17. In WeChat Mini Programs's canvas-related API, we found that there is a lack of relevant API interfaces to convert canvas into pictures.

Wechat 6.3.30 supports wx.canvasToTemFilePath, which can be used to convert canvas into a temporary file path for pictures.

18. The canvas drawing interface currently provided is not compatible with the native API of the web page.

Right

19. Mini Program developer, how to move Tab to the top

Wechat 6.3.30 has supported setting the position parameter in tabBar

20. Is there an API to obtain the original width and height of an image in the API of Mini Program?

Wechat 6.3.30 is supported. The bindload event of the image component can return the original width and height of the picture.

21. Can Mini Program quote external chart libraries, such as ECharts

Official support for the time being

twenty-two。 Can I use custom font icons when developing Mini Program?

Custom fonts are supported, but online fonts are required, and the server where fonts are stored needs to allow cross-domain

23. The official ES6 to ES5 will report an error on Android.

The function of converting ES6 to ES5 provided by development tools can only transform syntax. The API of new ES6, such as Promise, needs to be solved by introducing Polyfill or other class libraries.

24.wx.getImageInfo has bug on Android that cannot get the information.

Wechat version 6.3.31 Android client has this bug. The new version will be repaired.

25. Will the size of 1 MB of Mini Program be enlarged when the control is officially released?

The answer so far is that it will not be magnified.

What should I do if the unionid cannot be obtained by the 26.getUserInfo interface?

You need to go to the Wechat open platform website (https://open.weixin.qq.com) to bind Mini Program and your other official account or app to return unionid.

twenty-seven。 Does WeChat Mini Programs support interaction with hardware? For example, data communication with hardware through Bluetooth or Wi-Fi

The official may launch this function in the future.

twenty-eight。 What is the format of the recording completion?

The recording on the mobile phone is currently in SILK format. SILK is a voice codec developed within Skype as the default codec for Skype-to-Skype calls. SILK's high scalability in terms of audio bandwidth, network code rate and complexity makes it a codec that can choose a variety of modes and applications.

twenty-nine。 Does Mini Program allow users to read / write to their mobile phone address book?

Not supported at this time

30.iPad seems to be unable to preview Mini Program.

Currently, Mini Program does not support iPad.

thirty-one。 Does Mini Program support forwarding text, pictures and links to friends and moments?

Official answer: sharing ability will be provided soon, please pay attention to the official documentation

Whether 32.checkbox can only bind events through checkbox-group

Checkbox will not trigger change events, checkbox-group will trigger

thirty-three。 Scrolling the page, scrolling to the bottom, loading new content cannot be achieved.

Wechat 6.3.30 has supported page configuration onReachBottom event

thirty-four。 Canvas information cannot be saved when canvas components

Official answer: not for the time being, we will support it soon

There is no cookie parameter in the header of 35.uploadfile.

This bug is available in Wechat 6.3.31 iOS client, and the new version will be repaired soon.

36.WXML Mustache syntax (double curly braces) to bind data, if the corresponding target data is a piece of HTML text, can it be bound? How should I bind it?

The official does not support it for the time being.

thirty-seven。 Can I use some tool libraries in the code? For example, third-party tool libraries can be installed through npm install.

The official does not support it for the time being.

thirty-eight。 It seems impossible to get the width and height of the picture through JS. Is there a solution?

At present, you can only set the width and height of the picture.

thirty-nine。 Does WeChat Mini Programs have a way to make a phone call and send Email?

Currently, dialing is supported, but Email is not supported for now.

forty。 If it is paid to a sub-merchant, is the calling interface the same as the previous web development?

Currently, payment to sub-merchants is not supported.

forty-one。 Does Wechat Mini App support the loading of other external API or JS plug-ins in addition to its own API interface?

Currently, it is not supported.

forty-two。 Whether live video or audio streaming is supported, such as HLS

Official answer: we are improving our technology and will provide support soon.

forty-three。 Monitor the keyboard of the phone. For example, when the "finish" button is triggered, the corresponding action is performed. Currently, no relevant API has been found. Is there any support?

The input box (input/textarea) will later provide the event listening property of bindconfirm, which is used to listen for the click of the finish button.

forty-four。 Does the development tool not support Linux environment and Windows 2003/XP system?

Not supported at this time

forty-five。 I develop WeChat Mini Programs and server programs on the same machine at the same time. How can WeChat Mini Programs access my local server during development?

Currently, the server must use a domain name, and local debugging is not supported.

forty-six。 How to send feedback directly to the reviewer

Official answer: we will submit the verification page on Mini Program, the follow-up Wechat public platform, and add the test account (account + password), as well as the audit description. For audit questions, you can send an email to: AppReview@tencent.com, and we will arrange for someone to check the feedback.

forty-seven。 Can't individual developers register?

Currently, only enterprises, governments, media and other organizations are supported, and individual developers do not support registration.

forty-eight。 Using Promise in the coding of Mini Program tool to report an error: TypeError: Promise is not a constructor, what went wrong?

Official answer: in order to ensure the unity of the three ends, the 0.11.112300 tool removes Promise, and developers need to introduce compatibility libraries on their own.

So I introduced a promise.min library myself, lightweight and solved the

The 49.input component has bindInput events, while the textarea component does not

Add component event bindinput on December 22nd, 2016

fifty。 Will there be the last data cache after switching WeChat account?

Official answer: it will not be cleared, but after other users log in, they will not be able to access the data left by the previous user.

fifty-one。 After defining tabBar, the jump transfer such as wx.navigateTo becomes invalid.

Instead of using the official tabBar in my development, I wrote a tabBar myself, so I didn't encounter such a scenario. If I use the official tabBar, I use wx.switchTab to jump.

52.background-image setting relative path cannot display picture

You can use network address pictures, or base64, or use image tags to solve the problem.

Thank you for reading this article carefully. I hope the article "what are the common problems in the development of WeChat Mini Programs" shared by the editor will be helpful to everyone? at the same time, I also hope that you will support and pay attention to the industry information channel. more related knowledge is waiting for you to learn!

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