CodePudding user response:
CodePudding user response:
Const db=wx. Cloud. The database ()The collection (" fengshan "). Doc (app) globalData) myid). Get ({
Success: the function (res) {
//res. The data contains the recorded data
console.log(res.data);
App. GlobalData. Mydata. Push (res) data);
Var nowdata=https://bbs.csdn.net/topics/app.globalData.mydata [1]. The data
The console. The log (nowdata);
That. Get_up (nowdata)
},
, including the collection (" fengshan "). Doc (app) globalData) myid) inside a collection of fengshan is cloud database name, app. GlobalData. Myid is _id name within this collection, this is my little program directly taken in pieces and realization method are many, the official in the open document
CodePudding user response:
Cloud development have HTTP APIHTTP API provides a little outside the program's ability to access cloud development resources, developers can use the HTTP API on existing server access cloud resources, realize the traffic with the development of the cloud,
https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-http-api