Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 数据预拉取.md #2396

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

yangge19970923
Copy link
Contributor

数据预拉取修改

数据预拉取修改
启动改为冷启动
| method | String | 否 | HTTP 请求方法。支持 GET、POST、DELETE、PUT。<br />**默认值:**GET |
| headers | Array | 否 | 自定义请求头。 |
| dataType | String | 否 | 期望返回的数据格式。支持 JSON、text、base64、arraybuffer。<br />**默认值:**JSON |
| data | Object | 否 | 请求的参数。<br />- 如果是 method 为 GET,会将参数做成 query拼接在 url 后。<br />- 如果 method 为 POST,将默认以 x-www-form-urlencoded 提交。<br /> |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里为啥要删掉?验证过了没这个功能吗?


## 获取数据
通过调用 JSAPI getBackgroundFetchData  获取预加载的数据
通过调用 JSAPI [my.getBackgroundFetchData](https://opendocs.alipay.com/mini/api/getBackgroundFetchData?pathHash=aee9ff99) 获取预拉取的数据
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JSAPI -> 小程序 API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants