我的 jquery 脚本无法获得有效响应。
我的回复:
{
"success": true,
"data": {
"attack": null,
"shield": null,
"speed": null,
"cargo": null,
"upg_slots": "1"
}
}
代码:
echo json_encode(array(
'success' => true,
'data' => array(
'attack' => null,
'shield' => null,
'speed' => null,
'cargo' => null,
'upg_slots' => "1"
)
));
有效回复:
{
"success": true,
"data": [
{
"attack": null,
"shield": null,
"speed": null,
"cargo": null,
"upg_slots": "1"
}
]
}
提前致谢!