更新时间:2025-07-31 gmt 08:00

node.js函数模板-j9九游会登录

node.js函数

以下为node.js函数的示例代码模板:

exports.handler = async (event, context) => {
    const output =
    {
        'statuscode': 200,
        'headers':
        {
            'content-type': 'application/json'
        },
        'isbase64encoded': false,
        'body': json.stringify(event),
    }
    return output;
}

使用functiongraph控制台创建空白node.js事件函数,默认部署上述示例代码。

相关文档

相关文档

网站地图