Home > Mobile >  Small program written in variable data properly by value?
Small program written in variable data properly by value?

Time:10-30



OnLoad: function (options) {

var that=this;

Wx. Cloud. CallFunction ({

//cloud function name
Name: 'deviceQueryByBh'
//to the parameters of the function of cloud
Data: {
bh: options.//the option b, b to 1 normal, with options. B cannot obtain the query data, what is this?
},
Success: the function (res) {
The console. The log (options. B)//here you can get normal parameter values
The console. The log (res. Result)
That the setData ({
//device: res. Result [0]. The device
})
},
Fail: the console. The error
})



},

CodePudding user response:

Can of course use variables, this problem should be no b this attribute in your options
  • Related