1 'use strict'; 2 exports.main = async (event, context) => { 3 //JQL连接数据库 4 const db = uniCloud.databaseForJQL({ 5 event, 6 context 7 }) 8 9 //event为客户端上传的参数 10 console.log('event : ', event) 11 12 //返回数据给客户端 13 return event 14 };
标签:函数,databaseForJQL,context,event,模板,客户端 From: https://www.cnblogs.com/wm218/p/17105769.html