Get the App
SLTechnology News&Howtos  ›  Development  › 

How does WeChat Mini Programs obtain the data fields customized by the third party platform

Shulou Source: shulou.com Published: 2022-06-01 06:36:02 10月03日 Update

This article mainly introduces WeChat Mini Programs how to obtain the relevant knowledge of the data fields customized by the third-party platform, the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value. I believe that everyone will gain something after reading this article on how WeChat Mini Programs obtains the data fields customized by the third-party platform. Let's take a look.

Wx.getExtConfig (OBJECT)

The basic library 1.1.0 is supported, and the lower version needs to be compatible.

Get data fields customized by third-party platforms.

OBJECT parameter description:

Parameter type required returns successFunction No return data customized by third-party platform failFunction No API call failed callback function completeFunction No API call ends callback function (both successful and failed calls will be executed)

Success return parameter description:

Parameter type indicates the result of errMsgString call extConfigObject data customized by third-party platform Bug & Tip

For the time being, wx.getExtConfig cannot judge whether it is compatible through wx.canIUse. Developers need to judge whether wx.getExtConfig exists to be compatible.

Sample code:

If (wx.getExtConfig) {wx.getExtConfig ({success: function (res) {console.log (res.extConfig)})} wx.getExtConfigSync ()

The basic library 1.1.0 is supported, and the lower version needs to be compatible.

Gets the synchronization interface for the data fields customized by the third-party platform.

Return description:

The parameter type describes the data Bug & Tip customized by extConfigObject third-party platform

For the time being, wx.getExtConfigSync cannot judge whether it is compatible through wx.canIUse. Developers need to judge whether wx.getExtConfigSync exists to be compatible.

Sample code:

Let extConfig = wx.getExtConfigSync? Wx.getExtConfigSync (): {} console.log (extConfig) on "how to get data fields customized by WeChat Mini Programs on a third-party platform" ends here. Thank you for reading! I believe you all have a certain understanding of "how to obtain the custom data fields of the third-party platform". If you want to learn more, you are welcome to follow the industry information channel.

Tags: Platform data third party fields parameters programs interfaces knowledge types code content functions foundations developers versions examples articles processing development support Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Shulou Technology Huawei Redmi Docker