After using WeChat js-sdk and adding the wx. config code, no window will pop up.

Source: Internet
Author: User
For example, after I add the following code to the js Code, I don't know why I didn't generate a message according to the official instructions on alert. It is printed only in the console window. Vartimestamp $ (& amp; #039 ;. timestamp & #039 ;). val (); varnonceStr $ (& amp; #039 ;. noncestr & #039 ;). val (); varsignature...

For example, after I add the following code to the js Code, I don't know why I didn't generate a message according to the official instructions on alert. It is printed only in the console window.
Var timestamp =$ $ ('. timestamp '). val (); var nonceStr =$ $ ('. noncestr '). val (); var signature =$ $ ('. signature '). val (); wx. config ({debug: true, // enable the debugging mode. The returned values of all called APIs are displayed in the client alert. To view the input parameters, you can open them on the pc, the parameter information is output through log and printed only on the pc end. AppId: 'wx5e87ddfd21ceb766', // required. The unique identifier of the public number, timestamp: timestamp, // required. The signature timestamp, nonceStr, // required, generate a random string signature: signature, // required, signature. For details, see Appendix 1 jsApiList: ['chooseimag'] // required. List of JS interfaces to be used, for a list of all JS interfaces, see Appendix 2}); wx. checkJsApi ({jsApiList: ['chooseimage'], // list of JS interfaces to be detected. For the list of all JS interfaces, see Appendix 2, success: function (res) {myApp. alert (res );}});

Reply content:

For example, after I add the following code to the js Code, I don't know why I didn't generate a message according to the official instructions on alert. It is printed only in the console window.
Var timestamp =$ $ ('. timestamp '). val (); var nonceStr =$ $ ('. noncestr '). val (); var signature =$ $ ('. signature '). val (); wx. config ({debug: true, // enable the debugging mode. The returned values of all called APIs are displayed in the client alert. To view the input parameters, you can open them on the pc, the parameter information is output through log and printed only on the pc end. AppId: 'wx5e87ddfd21ceb766', // required. The unique identifier of the public number, timestamp: timestamp, // required. The signature timestamp, nonceStr, // required, generate a random string signature: signature, // required, signature. For details, see Appendix 1 jsApiList: ['chooseimag'] // required. List of JS interfaces to be used, for a list of all JS interfaces, see Appendix 2}); wx. checkJsApi ({jsApiList: ['chooseimage'], // list of JS interfaces to be detected. For the list of all JS interfaces, see Appendix 2, success: function (res) {myApp. alert (res );}});

ThisJS-SDKDebugging in a browser is not supported by a common browser.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.