当前位置:网站首页>Applet - API
Applet - API
2022-04-22 18:08:00 【A nerd learns programming】
List of articles
1 Applet API summary
In the applet API Is provided by the host environment , Through these rich applets API, Developers can easily call the capabilities provided by wechat , for example : Get user information 、 The local store 、 Payment function, etc .
2 Applet API Of 3 Big classification
Small program official API It is divided into the following 3 Categories: :
-
Event monitoring API
characteristic : With on start , Used to monitor the trigger of some events give an example :wx.onWindowResize(function callback) Listen for window size changes -
Sync API
characteristic 1: With Sync At the end of the API It's all synchronous API characteristic 2: Sync API The results of the implementation of , You can get directly through the return value of the function , If the execution fails, an exception will be thrown give an example :wx.setStorageSync('key', 'value') Write content to local storage -
asynchronous API
characteristic : Be similar to jQuery Medium $.ajax(options) function , Need to pass through success、fail、complete Receive the result of the call give an example :wx.request() Initiate a network data request , adopt success The callback function receives data
版权声明
本文为[A nerd learns programming]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204221753576708.html
边栏推荐
- Notes on soft test high items | contents of detailed feasibility study
- Usage of SAP ABAP for all entries
- 『程序员延寿指南』:跟着码农干,多活20年!
- Soft test high-level notes | tools and techniques for collecting needs
- This API hub is powerful. It contains open APIs such as nailing enterprise wechat, and can be debugged directly!
- Zhihu hot discussion: Zhejiang University has studied Bo for eight years and now makes money by delivering takeout
- In depth analysis of filter execution principle (BitSet mechanism and caching mechanism)
- 我为什么不再使用 flomo 了
- Soft test high item notes | project schedule management
- PiKachu-File Inclusion(文件包含漏洞)
猜你喜欢

接口协议之抓包分析 TCP 协议

国产芯片DP9637-K总线收发器替代L9637D芯片和SI9241

An understanding process and its communication method

Notes on soft test high items | information system life cycle

18730 涂色问题 (快速幂的两种写法)
Esprima ECMAScript parsing architecture

18730 coloring problem (two ways of writing fast power)

【C语言进阶篇】一篇文章带你认清结构、枚举和联合

【Lane】Ultra-Fast-Lane-Detection(2)自定义模型测试

Soft test high item notes | typical life cycle model of information system project
随机推荐
Topic5——198. raid homes and plunder houses
Packet capture analysis of interface protocol TCP protocol
DOM的综合应用的例子--点击加一和减一
秒云助力中电科32所发布“基于拟态应用集成框架的SaaS云管理平台解决方案”
【思考与进步】:关于自己的遗憾
膨胀卷积论文笔记
构建中国云生态 | 华云数据与百信完成产品兼容互认证 携手推动信创产业高质量发展
一文了解进程及其通信方法
In 2022, it is said on the Internet that Apple's upcoming new models iPhone 14 pro and iPhone 14 Pro Max will be a new screen shape, not a banged screen. Do you expect the iPhone 14 with a new screen
An idea plug-in that doesn't work, but can install X
解读《全面提升江苏数字经济发展水平的指导意见》七大重点任务
一个没啥L用,但可以装X的IDEA插件
National information exchange model (NIEM) operation manual
电脑上怎么快速切换显示不同的软件界面
ZeroMQ:事件监控
我为什么不再使用 flomo 了
MySQL - index
如何彻底删除电脑上的文件?
Leetcode 108: convert an ordered array into a binary search tree
【浏览器】谷歌浏览器自带翻译失效