wx.request({
url:url,
data: {
action: action,
param: param,
Id: Id,
small:{
a:‘1’,
b:‘2’,
c:‘3’
}
}
});
我是这样子传的,但是服务器那边收到的是这样的形式
Array
(
[action] => action
[param] => param
[Id] => Id
[small] => {\“a\”:\“1\”,\“b\”:\“2\”,\“c\”:\“3\”}
)
我想要的是这种形式,请问应该怎么传?
Array
(
[action] => action
[param] => param
[Id] => Id
[small] => Array(
[a]=>1
[b]=>2
[c]=>3
)
)