非常卑微的旅游小程序开发四--详情页

又花了两天时间,终于完成了详情页面的制作 一直在思考一个Bug js文件始终报错data未定义,找了两天才发现在云函数调用过程的代码 wx.cloud.callFunction({ // 云函数名称 name: ‘add’, // 传给云函数的参数 data: { a: 1, b: 2, }, }) .then(res => { console.log(res.result) // 3 }) .c
相关文章
相关标签/搜索