这种云函数入口函数的,这点的工作原理是什么?event里面都有什么?
关于这个知识点的文档连接在哪里呢?
想学习下云函数入口函数,这种多路由的方式,是什么原理?Want to learn the entry function of the cloud function, what is the principle of this multi-routing method?
想学习下云函数入口函数,这种多路由的方式,是什么原理?这种云函数入口函数的,这点的工作原理是什么?event里面都有什么?
关于这个知识点的文档连接在哪里呢?
What is the working principle of this cloud function entry function? What's in event? Where are the documents about this knowledge point connected?
回答:
自定义 type 类型,用 sitch case 判断,匹配到的就执行对应文件的代码
1、属于nodejs基本语法了。最像的可以参考koa2
路由?就是一个流程控制 if else而已。event是小程序传给云函数的参数