Skip to content

Commit

Permalink
Update the usage for browser side
Browse files Browse the repository at this point in the history
  • Loading branch information
yuezk authored Sep 15, 2020
1 parent 43a7d79 commit 3ab192a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ const wx = new Wechat(wechatConfig);

## Browser Side Usage
```javascript
const WechatJSSDK = require('wechat-jssdk/dist/client.umd');
const WechatJSSDK = require('wechat-jssdk');
//ES6 import
import WechatJSSDK from 'wechat-jssdk/dist/client.umd';
import WechatJSSDK from 'wechat-jssdk';
const wechatObj = new WechatJSSDK(config)
// or if you do not have a bundle process, just add the script tag, and access "WechatJSSDK" from window, e.g:
Expand Down

0 comments on commit 3ab192a

Please sign in to comment.