1. Secure domain name configuration of official WeChat account is required.
[wechat official account platform => setting and development = > wechat official account setting => function setting = & gtJS interface security domain name]
Note that you don't need to add /debug/cgi-bin/apiinfo) to get access_token during configuration.
3.get jsapi _ ticket(/CGI-bin/ticket/getticket? Access token = access token & type = jsapi)
4. Use the WeChat JS interface signature verification tool (/debug/cgi-bin/sandbox? T=jsapisign) calculates the signature.
Finally, you can debug the generated signature and other parameters in wx.config ().
JS-SDK description document:/doc/offiaccount/OA _ web _ apps/js-sdk.html.