当前位置:网站首页>Take you to wechat applet development in 3 minutes
Take you to wechat applet development in 3 minutes
2022-07-06 03:40:00 【Geek Jiangnan】
What is wechat applet
Wechat applet is Tencent 2017 year 1 month 9 A wechat based application that doesn't need to be installed, which was officially launched on the th
What is based on wechat ?
Simple and crude understanding is the application running in wechat , If wechat is not installed, it cannot run
What is no installation ?
No need to install, just a publicity stunt , In essence, small programs also need to be downloaded and installed . However, wechat officials have strict restrictions on the size of applet installation ( Single bag 2M/ General contract 20M), So the download and installation is very fast , So that it gives users the illusion of no installation
Applets and web pages and native APP contrast
- Webpage
Running environment : browser ( You can run with a browser )
advantage : Low development cost ( A set of code can run on various platforms ), Fast propagation ( Enter the web address to use )
shortcoming : Poor user experience ( Interactive experience is not as good as native ), Poor system fit ( Many system functions cannot be used )
- Native APP
Running environment :iOS/Android/HarmonyOS
advantage : Good user experience , High system fit ( All open functions of the system can be used )
shortcoming : High development cost ( Each platform requires a separate set of code ), Slow propagation ( Downloading and installing is tedious )
- Applet ( Between web pages and native APP Between )
Running environment : WeChat
advantage : Good user experience , Low development cost , Fast propagation ( Sweep code / Chat and share / WeChat search )
shortcoming : The system fit is not as good as the original ( You can only use functions that are open to both the system and wechat )
for example : The system opens the function of taking pictures , Wechat also opens this function , Then developers can use
for example : The system opens the function of reading address book , But wechat is not open , Then developers cannot use
But you don't have to worry , The open function of wechat can fully meet the needs of most applications in the market
summary
Applet is a kind of program between web page and native APP Applications between
It has both native APP Good user experience and good system fit , It also has low development cost and excellent propagation speed of web pages
The only two points worth noting are :
In order to achieve the effect of non inductive installation, the small program has a volume limit , So too complex programs are not suitable for small programs
Small programs have their own audit mechanism , The developed applet must be reviewed by Tencent before it can be put on the shelves
Small program development preparation
Knowledge reserve
necessary :HTML/CSS/JavaScript( Grammar part )
There are no browsers and documents in the applet (Document) The concept of object , So no need BOM/DOM Related knowledge
Optional :TypeScript/SASS/LESS/NodeJS
Applets support TypeScript/SASS/LESS/NodeJS, But it won't be the same without affecting our development
Yield twice the result with half the effort : Vue/React
There is also modularity in small programs / Componentization / Life cycle / Concepts such as instructions , If you have Vue or React, It will give you a feeling of seeing your first love
Account preparation
Because wechat developer tools can only be used after logging in , So you need to register an applet account
Account registration guide :https://developers.weixin.qq.com/miniprogram/introduction/
Account registration address :https://mp.weixin.qq.com/wxopen/waregister?action=step1
Personal developers : Register your account and get AppId Ready to dry
Team developers : After you register your account, you need to add other developers
Developer tool preparation
Download address :https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html
Introduction to development tools : https://developers.weixin.qq.com/miniprogram/dev/devtools/devtools.html
The related documents /Demo
Development of guidelines : https://developers.weixin.qq.com/ebook?
action=get_post_info&docid=0008aeea9a8978ab0086a685851c0a
Developing documents :https://developers.weixin.qq.com/miniprogram/dev/framework/
Demo Case study : https://github.com/wechat-miniprogram/miniprogram-demo
边栏推荐
- 在 .NET 6 中使用 Startup.cs 更简洁的方法
- Pelosi: Congress will soon have legislation against members' stock speculation
- JS music online playback plug-in vsplayaudio js
- Ethernet port &arm & MOS &push-pull open drain &up and down &high and low sides &time domain and frequency domain Fourier
- Princeton University, Peking University & UIUC | offline reinforcement learning with realizability and single strategy concentration
- MySQL Server层四个日志
- Indicator system of KQI and KPI
- User perceived monitoring experience
- 3.1 detailed explanation of rtthread serial port device (V1)
- Lua uses require to load the shared library successfully, but the return is Boolean (always true)
猜你喜欢
Overview of super-resolution reconstruction of remote sensing images
多项目编程极简用例
[practice] mathematics in lottery
BUAA喜鹊筑巢
[meisai] meisai thesis reference template
Redo file corruption repair
svg拖动点裁剪图片js特效
[Li Kou] the second set of the 280 Li Kou weekly match
Pytorch load data
Pointer for in-depth analysis (problem solution)
随机推荐
Blue Bridge Cup - day of week
EDCircles: A real-time circle detector with a false detection control 翻译
pytorch加载数据
数据分析——seaborn可视化(笔记自用)
canvas切积木小游戏代码
Blue style mall website footer code
February 14, 2022 Daily: Google long article summarizes the experience of building four generations of TPU
ASU & OSU | model based regularized off-line meta reinforcement learning
BUAA magpie nesting
On Data Mining
3.2 detailed explanation of rtthread serial port device (V2)
阿里测试师用UI自动化测试实现元素定位
蓝色样式商城网站页脚代码
[Qt5] QT QWidget immediately appears and disappears
MySQL 中的数据类型介绍
Map sorts according to the key value (ascending plus descending)
遥感图像超分辨率论文推荐
C#(三十)之C#comboBox ListView treeView
svg拖动点裁剪图片js特效
Pytorch load data