-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #268 from growingio/docs/update_web_upgrade
docs: update web upgrade
- Loading branch information
Showing
25 changed files
with
367 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
sidebar_position: 5 | ||
title: A/B测试 | ||
--- | ||
|
||
## 简介(gioABTest) | ||
|
||
用于A/B测试功能的插件。 | ||
|
||
## 集成 | ||
|
||
### 1、引入 | ||
|
||
#### 下载集成引入 | ||
|
||
- 下载插件并复制至项目中: | ||
**<font size="3"><https://assets.giocdn.com/sdk/minip/4.0.0/plugins/gioABTest.js></font>**<br/> | ||
**<font size="2">(如果您点击链接在浏览器中直接打开了文件并不是下载文件,请尝试右键点击链接,选择 `链接存储为...` 即可正常触发下载)</font>** | ||
|
||
```js | ||
import gioABTest from './utils/plugins/gioABTest'; | ||
``` | ||
|
||
#### npm 集成引入 | ||
|
||
```js | ||
import gioABTest from 'gio-miniprogram-sdk/plugins/gioABTest'; | ||
``` | ||
|
||
### 2、准备配置项 | ||
|
||
| **字段名** | **参数类型** | **默认值** | **说明** | | ||
| ----------------- | ------------ | ---------- | ------------------------------- | | ||
| `abServerUrl` | `string` | `-` | 必填,ABTest 分流服务的请求地址 | | ||
| `requestInterval` | `number` | `5` | 选填,单位分钟,请求间隔 | | ||
| `requestTimeout` | `number` | `1000` | 选填,单位毫秒,请求超时时长 | | ||
|
||
### 3、添加插件配置项并注册 | ||
|
||
```js | ||
gdp('registerPlugins', [{ ...gioABTest, options: { abServerUrl: 'server url' }}]); | ||
gdp('init', xxxx); | ||
``` | ||
|
||
### 4、api调用 | ||
|
||
```js | ||
gdp('getABTest', 实验层Id, (result: any) => { | ||
console.log(result); | ||
}); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
sidebar_position: 5 | ||
sidebar_position: 6 | ||
title: 性能监控 | ||
--- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.