备用
wx.cloud.callFunction({
name: '函数名',
data:{
name:e.detail.value,
scope:"name"
},
success: res => {
console.log('搜索成功')
this.setData({
namelist:res.result.userlist.data
})
}
})
this.setData({
category: this.data.category.concat({
name: e.detail.value.name
})
})
wx.showLoading({
title: '加载中',
})
setTimeout(function () {
wx.hideLoading()
}, 2000)
数组中的变量
list[‘+key+’]