小程序云开发

小程序云开发

1、初始化需带环境ID

初始化一次:
wx.cloud.init({
                env: 'dev-环境ID',
                traceUser: true,
            })

云数据库初始化:
const testDB = wx.cloud.database({
  env: 'test'
})

2、函数调用:

wx.cloud.callFunction({
                name: 'msg_sec_check',
                data: {
                    content: '参数'
                }
            }).then(res => {})

评论

spring security
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×