0.0.5 • Published 2 years ago

@liuhlightning/wx-jssdk v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

wx-jssdk

Interface to wx jssdk

According to Low Coupling and High cohesion, using as less dependencies as possibel.

Has no side effect feature, such as storage.

How to use

Add script tag in html head

<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>

Import wx and config

import { wx } from "@liuhlightning/wx-jssdk"; 

wx.config({
  debug: import.meta.env.DEV,
  appId: "your app id",
  timestamp: "time when sign",
  nonceStr: "nonce when sign",
  signature: "signature",
  jsApiList: ["updateAppMessageShareData", "updateTimelineShareData"],
});
0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago