In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "What should be paid attention to in developing Weixin Mini Programs". The explanation content in this article is simple and clear, easy to learn and understand. Please follow the idea of Xiaobian to study and learn "What should be paid attention to in developing Weixin Mini Programs" together!
1. The official definition of Weixin Mini Programs is: Weixin Mini Programs are an application that can be used without downloading and installing. It realizes the dream of "within reach" of the application. Users can open the application by sweeping or searching. In fact, it is more like a WEB APP, users can open a Weixin Mini Programs like opening a web page. Therefore, WeChat's requirement for Mini programs is that the overall size should not exceed 1MB.
2. app.json is a global configuration file. The [path + page name] of each page in Weixin Mini Programs (Mini) needs to be written in the pages of app.json, and the first page in the pages is the home page of the applet.
3. .json is a configuration file, and its contents must conform to JSON format, so comments are not allowed inside the file.
4. The path name and file name of each page must be the same.
5. tabBar (tab bar at the bottom of the client window for switching pages) is configured in app.json file. Only a minimum of 2 and a maximum of 5 tabs can be configured. The display order is the same as pei under tabBar tab.
6. The.wxss file is a style sheet file, and app.wxss is a global style sheet file. Style sheets for pages are unnecessary. When there is a page style sheet, style rules in the page style sheet cascade over style rules in app.wxss. If you do not specify a style sheet for your page, you can also use the style rules specified in app.wxss directly in the page's structure file. The.json file has the same rules.
7. Weixin Mini Programs (Mini) store resource files, which need to create folders under the root directory. When referencing, refer to them in the form of/folder name/resource name.
8. The iconPath and selectedIconPath properties of the tabBar accept the path to an image, which must be a local image and not a network image.
9. It is best to use rpx for pixel units, and WeChat will adapt to the size of the phone screen.
10. An app can only open 5 pages at a time. wx.navigateTo Open a page will not destroy the previous page, if the page has more layers, pay attention to using wx.redirectTo. There are also some shortcut keys in Weixin Mini Programs (Mini). It will be better to assist development if you can skillfully use shortcut keys.
cursor correlation
Ctrl+D: Select Match
Ctrl+X: Delete the line where the cursor is located..., Colleagues take care of their own duties: Cut
Ctrl+U: Cursor back
Ctrl+i: Select the current row
Ctrl+End: Move to the end of the file
Ctrl+Home: Move to the beginning of the file
Shift+Home: Select from the beginning of the line to the cursor
Shift+End: Select from cursor to end of line
Ctrl+Shift+L: Select all matches
format processing
Ctrl+C, Ctrl+V: Copy and paste, copy and paste a line if no text is selected
Ctrl+S: Save file
Shift+Alt+F: Code formatting
Ctrl+[, Ctrl+]: Indent lines of code
Ctrl+Shift+[, Ctrl+Shift+]: Collapse open code block
Alt+Up, Alt+Down: Move one line up or down
Shift+Alt+Up, Shift+Alt+Down: Copy a line up and down
Ctrl+Shift+Enter: Insert a line above the current line
interface-related
Ctrl +: Open or hide the sidebar
Ctrl + m: Open or hide the simulator
Ctrl + W: Close the current file
Ctrl+Shift+W: Close the current file
Thank you for reading. The above is the content of "What should be paid attention to when developing Weixin Mini Programs (Mini)." After studying this article, I believe you have a deeper understanding of what matters should be paid attention to when developing Weixin Mini Programs. The specific use situation still needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!
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.