后台返回信息处理:
$result['message'] = $file; echo json_encode($result);
返回前端查看对象:
success: function (result) { var json = JSON.stringify(result.message); alert(json); },
信息显示:
{"name":"微信图片_20191013090406.jpg","type":"image/jpeg","tmp_name":"/tmp/phprdfwp8","error":0,"size":229442}