You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
824 B
37 lines
824 B
4 months ago
|
微信官方 js-sdk
|
||
|
----
|
||
|
|
||
|
说明: 仅将官方 js-sdk 发布到 npm,支持 CommonJS,便于 browserify, webpack 等直接使用,支持 TypeScript。
|
||
|
|
||
|
|
||
|
官方 JS 源码: https://res.wx.qq.com/open/js/jweixin-1.6.0.js
|
||
|
|
||
|
官方使用说明: https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html
|
||
|
|
||
|
安装:
|
||
|
```shell
|
||
|
npm install weixin-js-sdk
|
||
|
```
|
||
|
|
||
|
使用:
|
||
|
```javascript
|
||
|
// commonjs
|
||
|
var wx = require('weixin-js-sdk');
|
||
|
|
||
|
// es module
|
||
|
import wx from 'weixin-js-sdk'
|
||
|
```
|
||
|
|
||
|
### Old versions
|
||
|
|
||
|
* [1.0.0](https://github.com/yanxi123-com/weixin-js-sdk/tree/1.0.0)
|
||
|
* [1.2.0](https://github.com/yanxi123-com/weixin-js-sdk/tree/1.2.0)
|
||
|
|
||
|
### 个人主页
|
||
|
|
||
|
* [https://yanxi123.com/](https://yanxi123.com/)
|
||
|
|
||
|
### 感谢
|
||
|
|
||
|
TypeScript 定义文件来自 [wx-jssdk-ts](https://github.com/zhaoky/wx-jssdk-ts/blob/master/index.d.ts)
|