We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb0d061 commit 0f65480Copy full SHA for 0f65480
README.md
@@ -18,18 +18,24 @@
18
```shell
19
yarn add @ohbug/miniapp
20
```
21
+或直接下载 [releases](https://github.com/ohbug-org/ohbug-miniapp/releases)
22
23
2. 「微信开发者工具 - 工具 - 构建 npm」,更多内容可查询[文档](https://developers.weixin.qq.com/miniprogram/dev/devtools/npm.html)
24
25
3. 初始化
26
```javascript
27
// 新建文件 ohbug.js
28
+// 引入 SDK
29
import Ohbug from "@ohbug/miniapp";
30
+// 或者直接引入js
31
+import Ohbug from "./ohbug-miniapp.esm.prod.js"
32
+// or
33
+const Ohbug = require("./ohbug-miniapp.cjs.prod.js")
34
35
const client = Ohbug.init({ apiKey: "YOUR_API_KEY" });
-
36
export default client;
37
38
+
39
40
// app.js
41
import './ohbug';
0 commit comments