如何往后台传递这种格式的参数嘛?
[
{“q_id”:1,“ch_id”:2,“uid”:3,“check”:4},
{“q_id”:5,“ch_id”:6,“uid”:7,“check”:8}
]
这种格式咋特殊了?直接传不就好了…
data:{
past:[
past:
{"q_id":1,"ch_id":2,"uid":3,"check":4},
{"q_id":5,"ch_id":6,"uid":7,"check":8}
}
wx.request({
data: { past: past
},
method:
"POST"
,
url:
url
success: res => {
wx.hideLoading()
res.data ? util.showToast(
"成功"
) : util.showToast(
"失败"
)
console.log(res.data)
})