From 7aaf866d59008fba62b4ddb2a627909d9e94e436 Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Thu, 5 Mar 2020 18:28:08 +0800 Subject: [PATCH] Update cf-functions.md --- docs/uniCloud/cf-functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/uniCloud/cf-functions.md b/docs/uniCloud/cf-functions.md index d61f7c6349..def123d3f7 100644 --- a/docs/uniCloud/cf-functions.md +++ b/docs/uniCloud/cf-functions.md @@ -51,7 +51,7 @@ exports.main = async (event, context) => { |files |Array<ReadStream|Buffer|String> | Object | ReadStream | Buffer | String| - |- |上传的文件,设置后将会使用 multipart/form-data 格式。如果未设置method,将会自动将method设置为POST | |contentType |String | - |- |上传数据的格式,设为`json`会自动在`header`内设置`Content-Type: application/json` | |nestedQuerystring|Boolean | - |- |转换data为queryString时默认不支持嵌套Object,此选项设置为true则支持转换嵌套Object | -|dataType |String | - |- |返回的数据格式 | +|dataType |String | - |- |返回的数据格式,可选值为 'json'(返回数据转为JSON),'text'(返回数据转为字符串), ''(返回数据不做处理,默认值) | |headers |Object | - |- |请求头 | |timeout |Number | Array | - |- |超时时间设置。设置为数组时第一项为请求超时,第二项为返回超时。设置为数字时相当于同时设置请求超时和返回超时,即`timeout:3000`效果等于`timeouut:[3000,3000]` | -- GitLab