1.在project.config.json文件中配置
"cloudfunctionRoot": "cloud/",
2.在cloud文件里新建一個node.js文件并且上傳部署

3.在小程序端調(diào)用云函數(shù)

詳情可參照開發(fā)文檔https://developers.weixin.qq.com/miniprogram/dev/wxcloud/guide/functions/wx-server-sdk.html
1.在project.config.json文件中配置
"cloudfunctionRoot": "cloud/",
2.在cloud文件里新建一個node.js文件并且上傳部署
3.在小程序端調(diào)用云函數(shù)
詳情可參照開發(fā)文檔https://developers.weixin.qq.com/miniprogram/dev/wxcloud/guide/functions/wx-server-sdk.html