Current location - Quotes Website - Signature design - What's the use of sharing js appid on WeChat?
What's the use of sharing js appid on WeChat?
Used to inject permissions

To use the JS interface of WeChat, you must inject permissions, such as appid parameters.

For example:

wx.config({

Debugging:? Really? //? When debugging mode is turned on, the return values of all called APIs will be displayed in client alerts. If you want to view the incoming parameters, you can open them on the pc side, and the parameter information will be typed out through the log, which will only be printed on the pc side.

appId:? '',? //? Required, the unique identification of the official account of WeChat.

Time stamp:? ,? //? Required, generate the time stamp of the signature.

Non-central: '',? //? If necessary, generate a random signature string.

Signature:? '',//? Required, signature, see appendix 1.

jsApiList:? []? //? List of required JS interfaces to be used. For a list of all JS interfaces, see Appendix 2.

}); Description of the development document of Wechat JSSDK:/wiki/7/AAA137b55fb2e0456bf8dd9148dd613f.html # . E6 . ad . a5 . e9 . aa . a4 . E4 . b 8.89 . ef . BC . 9a . e 9.80 . 9a . E8 . BF . 87 config . e 6.8e . a5 . e 5.8f . a3 . E6。 E9.85.8D.E7.BD.AE