Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use the onShareAppMessage sharing parameters developed by Wechat

Shulou Source: shulou.com Published: 2022-06-03 16:22:12 11月14日 Update

This article will explain in detail how to use the onShareAppMessage sharing parameters for Wechat development. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

First of all, the sharing function, the real machine can not be debugged at present. You can see the effect on the development tools. It will be updated later.

After adding the following code in Page (), three small white dots will appear in the upper right corner.

Title: the title of sharing.

Desc: share a description.

Path: this parameter is interesting. In the past, the sharing in Wechat was usually url. Here is the current page here should be pages/index?id=123 here id here do not know what it is.

In other words, you can share a page in Wechat like a web page.

OnShareAppMessage: function () {return {title: 'WeChat Mini Programs Alliance', desc: 'the most popular Mini Program Development Alliance!, path:' / page/user?id=123'}} this is the end of the article on "how to use onShareAppMessage sharing parameters for Wechat Development". I hope the above content can be helpful to you, so that you can learn more knowledge, if you think the article is good. Please share it for more people to see.

Tags: Development parameters articles more alliances pages good practical three that is popularity code content functions tools development tools meaning effects articles Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Shulou Technology macOS Xiaomi MySQL