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-SDK
Debugging in a browser is not supported by a common browser.