项目说明
源码来源:tencent-wx-jssdk 作者:taoqf
URL:tencent-wx-jssdk
本项目添加了自己需要用的小程序的接口的描述,因不熟悉TS,不确定是否有BUG。
微信SDK地址
Weixin JS-SDK
SDK Version
1.6.0
Install
npm install ltg-wxsdk --save
How to Use
TypeScript
// sometime you want import this module, eg. use this with webpack; scanQRCode;
or, you could add this module in your tsconfig.json
then use it freely.
jWeixin.scanQRCode; // sometimes you must use WeixinJSBridge, like wexin payingWeixinJSBridge.invoke"getBrandWCPayRequest", ,;
javascript
You will need this only if you would like get your project packed.
const wx = ;wx;
Others
ts Error
If you get this Error:
[ts] Initializers are not allowed in ambient contexts.
Try add "skipLibCheck": true
to compilerOptions
in file tsconfig.json
.
Good luck!