当前位置:网站首页>Uni app wechat applet sharing function
Uni app wechat applet sharing function
2022-06-28 06:06:00 【m0_ sixty-one million seventy-three thousand six hundred and se】
1: The native menu in the upper right corner of the applet has its own share button


2: Or a share button placed on the page <button>
<button class="separate-fl" plain="true" data-name="shareBtn" open-type="share">
<text class="icon-fenxiang iconfont"></text>
<text class="separate-text"> Share </text>
</button>

Both types of sharing trigger onShareAppMessage function , stay js The function is defined in , Set the information shared by the page ,
Be careful : This function and onLoad And so on

Official documents :https://uniapp.dcloud.io/api/plugins/share?id=onshareappmessage
The renderings are as follows :

边栏推荐
- 链表(二)——设计链表
- Scripting and programming languages
- Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance
- At first glance, I can see several methods used by motionlayout
- Difficulty calculation of Ethereum classic
- Windows环境Redis使用AOF持久化,无法生成AOF文件,生成后无法加载AOF文件内容
- 深度學習19種損失函數
- 若依实现下拉框
- The windows environment redis uses AOF persistence and cannot generate an AOF file. After generation, the content of the AOF file cannot be loaded
- 脚本语言和编程语言
猜你喜欢

death_satan/hyperf-validate

Xcode13.3.1 项目执行pod install后报错

Example of MVVM framework based on kotlin+jetpack

Yygh-6-wechat login

6. graduation design temperature and humidity monitoring system (esp8266 + DHT11 +oled real-time upload temperature and humidity data to the public network server and display the real-time temperature

5g network overall architecture

19 fonctions de perte d'apprentissage profond

Yygh-8-appointment registration

Difficulty calculation of Ethereum classic

death_ satan/hyperf-validate
随机推荐
Select trigger event from easyUI drop-down box
慢内容广告:品牌增长的长线主义
PKG package node project (express)
Data midrange: implementation and summary of AI midrange
Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
Use of JDBC
AutoCAD C polyline small acute angle detection
Lombok @equalsandhashcode annotation how to make objects The equals () method compares only some attributes
马赛克数据增强 mosaic
[MySQL] all query tables contain 20million data -- how to optimize SQL
Relevant implementation records of CSI and local disk
Yolact++ Pytorch环境
socke. IO long connection enables push, version control, and real-time active user statistics
Caused by: com.fasterxml.jackson.databind.exc.InvalidFormatException:异常解决
报错--解决core-js/modules/es.error.cause.js报错
Configure redis from 0
pkg打包node工程(express)
Sklearn Feature Engineering (summary)
Pre training model parameter mismatch
Example of MVVM framework based on kotlin+jetpack