5I编程
首页
文章
教程
文档
工具
首页
文章
教程
文档
工具
指南
框架
组件
API
平台能力
服务端
工具
云开发
云托管
微信小程序
快速开始
小程序/小游戏
公众号
基础概念
云开发能力
重要概念
环境
账号
插件支持
Web 端支持
跨账号环境共享
未登录模式
权限设置
服务商模式
开发指引
指引
控制台
初始化
编辑器
调试
基础能力
初始化
数据库
上手
数据类型
权限管理
简介
安全规则
简易权限配置
增删查改 (SDK)
初始化
插入
查询
查询指令
更新
删除数据
查询、更新数组/对象
联表查询
增删查改 (管理端)
控制台数据库高级操作
数据库脚本
实时数据推送
地理位置
聚合
能力说明
示例
事务
索引
Explain 查询分析
数据迁移
导入
导出
数据备份
存储
API
管理文件
文件名命名限制
组件支持
云函数
我的第一个云函数
获取小程序用户信息
异步返回结果
使用 npm
使用 wx-server-sdk
本地调试
灰度/版本管理
高级日志
定时触发器
运行机制
注意事项
管理云函数
安全规则
测试、日志与监控
消息推送
事件触发器
常驻云函数
静态网站
简介
H5 跳小程序
短信跳小程序
拓展插件
内容管理
介绍
开通使用
内容模型
营销工具
微信生态
小程序环境共享
介绍
使用指南
示例
公众号环境共享
使用指南
Web SDK
云调用
消息推送
第三方 Cookie 限制说明
使用云开发·示例
简介
HTML
echo 云函数
cloudbase_auth 云函数
云调用
内容安全
微信支付
支付
分账
低码开发
基本概念
产品概述
词汇表
编辑器
介绍
低码能力
模板使用说明
对模板进行自定义开发
使用管理后台对应用进行修改
微搭API
API概览
工具API
界面API
路由API
平台API
数据源API
小程序开发实践
手机号快速填写
获取用户信息
小程序页面分享
资源管理
计费概述
运维
监控图表
告警
工单
计费相关
计费说明
操作说明
支付方式
发票管理
代金券
开发者资源
云开发 HTTP API 文档
云函数
触发云函数
数据库
导入
导出
迁移状态查询
更新索引
新增集合
删除集合
获取集合信息
插入记录
删除记录
更新记录
查询记录
聚合
统计记录数量
存储
获取文件上传链接
获取文件下载链接
删除文件
其他
获取腾讯云API调用凭证
SDK 文档
(index)
初始化
小程序
云函数
Web
常量
云函数
callFunction
文件储存
uploadFile
小程序
云函数
downloadFile
小程序
云函数
deleteFile
getTempFileURL
工具类
Cloud
getWXContext
logger
CDN
getCloudCallSign
开放能力
openapi
CloudID
getOpenData
getVoIPSign
微信支付
统一下单
支付结果回调
查询订单
关闭订单
申请退款
查询退款
下载对账单
分账能力
请求单次分账
请求多次分账
查询分账结果
添加分账接收方
删除分账接收方
完结分账
分账回退
回退结果查询
Web API
checkLogin
startLogin
getJSSDKSignature
refreshAuth
数据库
database
Database
(index)
collection
command
Geo
serverDate
RegExp
createCollection
runTransaction
startTransaction
Collection
(index)
doc
aggregate
where
limit
orderBy
skip
field
get
update
remove
count
add
watch
Document
(index)
get
set
update
remove
Aggregate
(index)
addFields
bucket
bucketAuto
count
geoNear
group
limit
lookup
match
project
replaceRoot
sample
skip
sort
sortByCount
unwind
end
Geo
Point
DYNAMIC_CURRENT_ENV
LineString
Polygon
MultiPoint
MultiLineString
MultiPolygon
GeoPoint
GeoLineString
GeoPolygon
GeoMultiPoint
GeoMultiLineString
GeoMultiPolygon
Transaction
(index)
collection
rollback
commit
Command
(index)
and
or
not
nor
eq
neq
lt
lte
gt
gte
in
nin
exists
mod
all
elemMatch
size
geoNear
geoWithin
geoIntersects
expr
set
remove
inc
mul
min
max
rename
push
pop
unshift
shift
pull
pullAll
addToSet
(index)
abs
add
ceil
divide
exp
floor
ln
log
log10
mod
multiply
pow
sqrt
subtract
trunc
arrayElemAt
arrayToObject
concatArrays
filter
in
indexOfArray
isArray
map
objectToArray
range
reduce
reverseArray
size
slice
zip
and
not
or
cmp
eq
gt
gte
lt
lte
neq
cond
ifNull
switch
dateFromParts
dateFromString
dateToString
dayOfMonth
dayOfWeek
dayOfYear
hour
isoDayOfWeek
isoWeek
isoWeekYear
millisecond
minute
month
second
week
year
subtract
literal
mergeObjects
objectToArray
allElementsTrue
anyElementTrue
setDifference
setEquals
setIntersection
setIsSubset
setUnion
concat
dateFromString
dateToString
indexOfBytes
indexOfCP
split
strLenBytes
strLenCP
strcasecmp
substr
substrBytes
substrCP
toLower
toUpper
addToSet
avg
first
last
max
mergeObjects
min
push
stdDevPop
stdDevSamp
sum
let
参考信息
错误码
兼容性问题
更新日志
基础库
wx-server-sdk
Web SDK
IDE & 控制台
echo 云函数
# 公众号使用云开发 / 极简示例 / echo 云函数
资源方
echo
函数简易返回示例:
exports
.
main
=
async
event
=>
{
return
event
}