云函数
调用云函数
exports.main = function helloWorld(event, callback) {
console.log(event)
callback(null, `hello ${event.data.name}`)
}try {
var result = await invokeCloudFunction(name: "helloWorld", data: {"name": "BaaS"}, sync: true);
// 操作成功
} on HError catch(e) {
// 操作失败
}参数
类型
必填
说每个
参数
类型
描述
Last updated
Was this helpful?
