当前位置:网站首页>Take you to wechat applet development in 3 minutes
Take you to wechat applet development in 3 minutes
2022-07-28 09:49:00 【segegefe】
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/waregisteraction=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
边栏推荐
- Window源码解析(四):Window的删除机制
- How promise instance solves hell callback
- [autosar-rte] - introduction of 2-component, component and VFB
- ECCV 2022 | can be promoted without fine adjustment! Registration based anomaly detection framework for small samples
- Symbolic operation of MATLAB
- OSS direct upload rails service practice
- 关于CLR GC调优的一些问题
- Common tool functions are constantly updated
- Window source code analysis (III): window update mechanism
- 脉冲风采|Committer 专访——腾讯工程师张大伟喊你吃“螃蟹”啦
猜你喜欢

Opencv4.60 installation and configuration

My vivado practice - single cycle CPU instruction analysis

极致通缩和永动机模型,将推动 PlatoFarm 爆发
![ASP.NET Core 6框架揭秘实例演示[29]:搭建文件服务器](/img/90/40869d7c03f09010beb989af07e2f0.png)
ASP.NET Core 6框架揭秘实例演示[29]:搭建文件服务器

《我的Vivado实战—单周期CPU指令分析》

Domain events and integration events are not so big

使用 OpenSSL 创建ssl证书

With such a simple verification, 80% of programmers can't do it, let alone understand it!

OSS直连上传-Rails服务实践

Standing on the shoulders of big men, you can see further
随机推荐
2022 supplementary questions for the first session of Niuke multi school
TimeBasedRollingPolicy简介说明
SizeBasedTriggeringPolicy简介说明
EvaluatorFilter简介说明
使用Xposed对软件进行破解
C form application uses object binding DataGridView data binding
Pytorch deep learning practice lesson 9 multi classification problems (handwritten numeral MNIST)
数据库高级学习笔记--对象类型
Introduction to shardingsphere's concept of sub database and sub table (2)
Create SSL certificate using OpenSSL
MySQL中各类型文件详解
(iros 2022) monocular visual inertial odometer based on event camera
Window源码解析(四):Window的删除机制
Learn a hammer.Net zero foundation reverse tutorial lesson 3 (shell and homework)
如何使用JWT进行身份验证与授权
脉冲风采|Committer 专访——腾讯工程师张大伟喊你吃“螃蟹”啦
Linux操作系统(Centos7)安装MySQL
MySQL master-slave architecture. After the master database is suspended and restarted, how can the slave database automatically connect to the master database
Opencv installation configuration test
Source code analysis of view event distribution mechanism